commit | 8b68bfb15dd3d2690bc056bd6ad1471d3b4b5ade | [log] [tgz] |
---|---|---|
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | Thu Apr 30 14:14:49 2020 +0200 |
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | Thu Apr 30 14:15:13 2020 +0200 |
tree | 67e0c8f36bd14df57de1b7c76462a15d6aec5685 | |
parent | ffe99539d7a2640e89daa0cdc00b814e11ab3067 [diff] |
SLIP: Remove a now useless test The IP_V macro uses now the GET_U_1 macro.
diff --git a/print-sl.c b/print-sl.c index 14f9bc1..25ae79b 100644 --- a/print-sl.c +++ b/print-sl.c
@@ -79,11 +79,6 @@ 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);