summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-02-28 13:19:57 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-02-28 13:19:57 +0000
commitc6524e9cece12d98792020ccce05338a911683b9 (patch)
tree2fa4e64fc8c131c8b4981cdc3ec3886b4358f427
parent7765b37709b2181d1e891ca3ebc4a68dd79a480e (diff)
add DLT_IEEE802_11_RADIO (802.11 + radiotap header)
ok jsg@ deraadt@
-rw-r--r--lib/libpcap/gencode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c
index ea35c73e627..30711f95e9f 100644
--- a/lib/libpcap/gencode.c
+++ b/lib/libpcap/gencode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencode.c,v 1.22 2004/05/21 05:40:37 brad Exp $ */
+/* $OpenBSD: gencode.c,v 1.23 2005/02/28 13:19:56 reyk Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
@@ -611,6 +611,11 @@ init_linktype(type)
off_nl = 32;
return;
+ case DLT_IEEE802_11_RADIO:
+ off_linktype = 30 + 64; /* XXX variable */
+ off_nl = 32 + 64;
+ return;
+
case DLT_ATM_RFC1483:
/*
* assume routed, non-ISO PDUs