]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sl.c
Remove some useless tests
[tcpdump] / print-sl.c
index 5bba17ab2c03efad2fa0e19033f018d4e100e638..38ecb70def42aec59340c767296333ed5d23ec63 100644 (file)
@@ -63,7 +63,7 @@ sl_if_print(netdissect_options *ndo,
        const struct ip *ip;
 
        ndo->ndo_protocol = "sl_if";
-       if (caplen < SLIP_HDRLEN || length < SLIP_HDRLEN) {
+       if (caplen < SLIP_HDRLEN) {
                nd_print_trunc(ndo);
                return (caplen);
        }
@@ -76,7 +76,7 @@ sl_if_print(netdissect_options *ndo,
        if (ndo->ndo_eflag)
                sliplink_print(ndo, p, ip, length);
 
-       if (caplen < 1 || length < 1) {
+       if (caplen < 1) {
                nd_print_trunc(ndo);
                return (caplen + SLIP_HDRLEN);
        }