]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Silence IOS 15.1 unknown capabilities messages.
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 2 Aug 2012 11:29:23 +0000 (05:29 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 2 Aug 2012 11:29:23 +0000 (05:29 -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 a0a2e7a78ca059608a3f98f65540ea5581905e6b..74fa289e9ff79babc551026845fe60d594ecd9f6 100644 (file)
@@ -328,6 +328,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
@@ -1387,6 +1389,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) << ").");
             }