summaryrefslogtreecommitdiff
path: root/print-sll.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-13 19:24:27 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-09-13 19:24:27 +0200
commitc6a5cc1bb49bcbc5f74c66bf780b8a1a05e8eb9d (patch)
treefb2bdc89438229bd5c6530c2a591823198e84fbc /print-sll.c
parent8d316a9ae0605271b2ad9fb8fffc8cfad10797fa (diff)
downloadtcpdump-c6a5cc1bb49bcbc5f74c66bf780b8a1a05e8eb9d.tar.gz
SLL: Remove two useless tests
Because packet length (length) >= capture length (caplen). (see the sanity checks in print.c, pretty_print_packet() function)
Diffstat (limited to 'print-sll.c')
-rw-r--r--print-sll.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/print-sll.c b/print-sll.c
index 3c25a9a5..51526579 100644
--- a/print-sll.c
+++ b/print-sll.c
@@ -293,10 +293,6 @@ recurse:
ND_PRINT("[|vlan]");
return (hdrlen + caplen);
}
- if (length < 4) {
- ND_PRINT("[|vlan]");
- return (hdrlen + length);
- }
if (ndo->ndo_eflag) {
uint16_t tag = EXTRACT_BE_U_2(p);
@@ -484,10 +480,6 @@ recurse:
ND_PRINT("[|vlan]");
return (hdrlen + caplen);
}
- if (length < 4) {
- ND_PRINT("[|vlan]");
- return (hdrlen + length);
- }
if (ndo->ndo_eflag) {
uint16_t tag = EXTRACT_BE_U_2(p);