]> The Tcpdump Group git mirrors - tcpdump/commit
Revert "Ethernet: Remove two useless tests"
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 19 Nov 2018 15:02:40 +0000 (16:02 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 19 Nov 2018 15:02:40 +0000 (16:02 +0100)
commit01017da63c1c0d4b241ea29a43e5d5bd1a3a53dd
tree18699bc4506ab5e54dfa79f38d5704521328b175
parent9edeb142527f29a6e31425b4280c9be0a7962c47
Revert "Ethernet: Remove two useless tests"

This reverts commit b7fff7058282c332ba1d8d236c9864ab21b16adf (partially)

The sanity check in print.c/pretty_print_packet() function, packet length
(length) >= capture length (caplen), apply when the ether_print()
function is called by ether_if_print(), netanalyzer_if_print() or
netanalyzer_transparent_if_print().

But the ether_print() function is called in some other cases, thus not
sure length always >= caplen.
print-ether.c