]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-cdp.c
remove redundant ND_TCHECK, let GET_ routines handle checks
[tcpdump] / print-cdp.c
index 059c6a3f62e70f93383f1dd57cc13055c7f0fb9b..0ab646e51dee71dd63296ee4bd1b9c80a58ac94a 100644 (file)
@@ -210,7 +210,7 @@ cdp_print(netdissect_options *ndo,
                        ND_PRINT("%s", GET_U_1(tptr) ? "full": "half");
                        break;
 
-                   /* http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cata/186/2_12_m/english/release/notes/186rn21m.html
+                   /* https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cata/186/2_12_m/english/release/notes/186rn21m.html
                     * plus more details from other sources
                     *
                     * There are apparently versions of the request with both
@@ -337,7 +337,6 @@ cdp_print_addr(netdissect_options *ndo,
                         */
                        p += 3;
 
-                       ND_TCHECK_4(p);
                        if (p + 4 > endp)
                                goto trunc;
                        ND_PRINT("IPv4 (%u) %s", num, GET_IPADDR_STRING(p));