aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap/gencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libpcap/gencode.c')
-rw-r--r--contrib/libpcap/gencode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/libpcap/gencode.c b/contrib/libpcap/gencode.c
index ea622dec8d44..211e8632567b 100644
--- a/contrib/libpcap/gencode.c
+++ b/contrib/libpcap/gencode.c
@@ -567,6 +567,11 @@ init_linktype(type)
off_nl = 6; /* XXX in reality, variable! */
return;
+ case DLT_IEEE802_11:
+ off_linktype = 30; /* XXX variable */
+ off_nl = 32;
+ return;
+
case DLT_EN10MB:
off_linktype = 12;
off_nl = 14;
@@ -662,6 +667,7 @@ init_linktype(type)
off_nl = 22;
return;
+#ifdef notdef
case DLT_IEEE802_11:
/*
* 802.11 doesn't really have a link-level type field.
@@ -678,6 +684,7 @@ init_linktype(type)
off_linktype = 24;
off_nl = 30;
return;
+#endif
case DLT_PRISM_HEADER:
/*