summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-08-19 21:35:13 +0000
committerpst <pst@FreeBSD.org>1996-08-19 21:35:13 +0000
commit621d4a684596dd4c379cbc4def98bd6703c78f2e (patch)
tree6b8a0e475cbdf3aec94b797188f816fb8c7bdb29 /contrib
parent2e90abeceef30ac51c437a1540ce62dbd9953628 (diff)
downloadFreeBSD-src-621d4a684596dd4c379cbc4def98bd6703c78f2e.zip
FreeBSD-src-621d4a684596dd4c379cbc4def98bd6703c78f2e.tar.gz
Decode maximumim sized ethernet frames properly
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tcpdump/print-ether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcpdump/print-ether.c b/contrib/tcpdump/print-ether.c
index b2a1644..e6820c1 100644
--- a/contrib/tcpdump/print-ether.c
+++ b/contrib/tcpdump/print-ether.c
@@ -116,7 +116,7 @@ ether_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
* Is it (gag) an 802.3 encapsulation?
*/
extracted_ethertype = 0;
- if (ether_type < ETHERMTU) {
+ if (ether_type <= ETHERMTU) {
/* Try to print the LLC-layer header & higher layers */
if (llc_print(p, length, caplen, ESRC(ep), EDST(ep)) == 0) {
/* ether_type not known, print raw packet */
OpenPOWER on IntegriCloud