]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sl.c
bgp: Parse BGP extended message support capability
[tcpdump] / print-sl.c
index 85b762496d245cb043bc289ae09f685d5f33b0ef..88f9fb0291e10fe48b32cac3cfecd89097477cba 100644 (file)
@@ -149,9 +149,7 @@ sliplink_print(netdissect_options *ndo,
                        /* Direction is bogus, don't use it */
                        return;
                }
-               ND_TCHECK_SIZE(ip);
                hlen = IP_HL(ip);
-               ND_TCHECK_SIZE((const struct tcphdr *)&((const int *)ip)[hlen]);
                hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]);
                lastlen[dir][lastconn] = length - (hlen << 2);
                break;
@@ -250,9 +248,7 @@ compressed_sl_print(netdissect_options *ndo,
         * 'cp - chdr' is the length of the compressed header.
         * 'length - hlen' is the amount of data in the packet.
         */
-       ND_TCHECK_SIZE(ip);
        hlen = IP_HL(ip);
-       ND_TCHECK_SIZE((const struct tcphdr *)&((const int32_t *)ip)[hlen]);
        hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]);
        lastlen[dir][lastconn] = length - (hlen << 2);
        ND_PRINT(" %u (%ld)", lastlen[dir][lastconn], (long)(cp - chdr));