aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netmon.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-07-23 10:11:44 +0000
committerGuy Harris <guy@alum.mit.edu>2010-07-23 10:11:44 +0000
commit99a086051bd318b811886754ea9db594b2b3904a (patch)
treeb67be7e38741db22abdca078a6e0e67fa01cd4f0 /wiretap/netmon.c
parent7330e631281b4810f7cfb850189cc4ff2874916d (diff)
At least in some NetMon 3.4 VPN captures, the per-packet link-layer type
is 0, but the packets have Ethernet headers. We handle this by mapping 0 to WTAP_ENCAP_ETHERNET. (XXX - should we, instead, use the per-file link-layer type?) svn path=/trunk/; revision=33620
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r--wiretap/netmon.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c
index 7bf00f7eae..e515ab7fc5 100644
--- a/wiretap/netmon.c
+++ b/wiretap/netmon.c
@@ -139,8 +139,14 @@ typedef struct {
guint current_frame;
} netmon_t;
+/*
+ * XXX - at least in some NetMon 3.4 VPN captures, the per-packet
+ * link-layer type is 0, but the packets have Ethernet headers.
+ * We handle this by mapping 0 to WTAP_ENCAP_ETHERNET; should we,
+ * instead, use the per-file link-layer type?
+ */
static const int netmon_encap[] = {
- WTAP_ENCAP_UNKNOWN,
+ WTAP_ENCAP_ETHERNET,
WTAP_ENCAP_ETHERNET,
WTAP_ENCAP_TOKEN_RING,
WTAP_ENCAP_FDDI_BITSWAPPED,