]> The Tcpdump Group git mirrors - tcpdump/commitdiff
SLIP: Remove a now useless test
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 30 Apr 2020 12:14:49 +0000 (14:14 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 30 Apr 2020 12:15:13 +0000 (14:15 +0200)
The IP_V macro uses now the GET_U_1 macro.

print-sl.c

index 14f9bc1b607736bbaa6647d494cf16f6ac138771..25ae79b8ba617a52810ed264156f094285eda96d 100644 (file)
@@ -79,11 +79,6 @@ sl_if_print(netdissect_options *ndo,
                        return (caplen + SLIP_HDRLEN);
                }
 
-       if (caplen < 1) {
-               nd_print_trunc(ndo);
-               return (caplen + SLIP_HDRLEN);
-       }
-
        switch (IP_V(ip)) {
        case 4:
                ip_print(ndo, (const u_char *)ip, length);