]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Silence IOS 15.1 unknown capabilities messages.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Jul 2012 01:27:05 +0000 (19:27 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Jul 2012 01:27:05 +0000 (19:27 -0600)
Its nice to know when new capabilities are added.
But we don't need to report after being informed about them.

TODO: reduce the message to once every thousand or so.
  But be careful to identify what different type numbers exist.

src/wccp2.cc

index 521fee239de0b3c67933aee4e5d25fe37105c31f..4996e071be5fcd424737b6b36d6ee400e652d64b 100644 (file)
@@ -331,6 +331,8 @@ static struct wccp2_capability_element_t wccp2_capability_element;
 #define WCCP2_CAPABILITY_FORWARDING_METHOD     0x01
 #define WCCP2_CAPABILITY_ASSIGNMENT_METHOD     0x02
 #define WCCP2_CAPABILITY_RETURN_METHOD         0x03
+// 0x04 ?? - advertised by a 4507 (ios v15.1) Cisco switch
+// 0x05 ?? - advertised by a 4507 (ios v15.1) Cisco switch
 
 /* capability values */
 #define WCCP2_METHOD_GRE               0x00000001
@@ -1384,6 +1386,10 @@ wccp2HandleUdp(int sock, void *not_used)
 
                 break;
 
+            case 4:
+            case 5:
+                break; // ignore silently for now
+
             default:
                 debugs(80, 1, "Unknown capability type in WCCPv2 Packet (" << ntohs(router_capability_element->capability_type) << ").");
             }