aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcpdump/print-sll.c
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2007-10-16 02:20:42 +0000
committerMax Laier <mlaier@FreeBSD.org>2007-10-16 02:20:42 +0000
commitb5bfcb5d8ae026769a67b6230c15014efc32f7fe (patch)
tree01f74f6819cfb28636e2f6d04efefacdfecafc5c /contrib/tcpdump/print-sll.c
parentfaeb38d111efa1ecad5565f314581e95ce3ac7f8 (diff)
downloadsrc-b5bfcb5d8ae026769a67b6230c15014efc32f7fe.tar.gz
src-b5bfcb5d8ae026769a67b6230c15014efc32f7fe.zip
Import of tcpdump v3.9.8
Notes
Notes: svn path=/vendor/tcpdump/dist/; revision=172683
Diffstat (limited to 'contrib/tcpdump/print-sll.c')
-rw-r--r--contrib/tcpdump/print-sll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/tcpdump/print-sll.c b/contrib/tcpdump/print-sll.c
index d2a821d01b49..1735f65095ca 100644
--- a/contrib/tcpdump/print-sll.c
+++ b/contrib/tcpdump/print-sll.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-sll.c,v 1.16.2.2 2005/07/07 01:24:39 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-sll.c,v 1.16.2.3 2005/11/13 12:13:00 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -148,7 +148,6 @@ sll_if_print(const struct pcap_pkthdr *h, const u_char *p)
* Is it (gag) an 802.3 encapsulation, or some non-Ethernet
* packet type?
*/
- extracted_ethertype = 0;
if (ether_type <= ETHERMTU) {
/*
* Yes - what type is it?
@@ -173,6 +172,9 @@ sll_if_print(const struct pcap_pkthdr *h, const u_char *p)
break;
default:
+ extracted_ethertype = 0;
+ /*FALLTHROUGH*/
+
unknown:
/* ether_type not known, print raw packet */
if (!eflag)