1 $DragonFly: src/lib/libpcap/patches/Attic/gencode.c.patch,v 1.1 2007/03/16 12:59:10 sephe Exp $
3 ===================================================================
4 RCS file: /opt/df_cvs/src/contrib/libpcap-0.9/gencode.c,v
5 retrieving revision 1.1.1.1
6 diff -u -r1.1.1.1 gencode.c
7 --- gencode.c 25 Dec 2006 00:32:18 -0000 1.1.1.1
8 +++ gencode.c 10 Mar 2007 04:51:54 -0000
11 #include <pcap-namedb.h>
13 +#include <netproto/802_11/ieee80211.h>
14 +#include <netproto/802_11/ieee80211_radiotap.h>
19 @@ -6303,6 +6306,21 @@
23 +/* IEEE 802.11 wireless header */
25 +gen_p80211_type(int type, int mask)
29 + if (linktype != DLT_IEEE802_11 && linktype != DLT_IEEE802_11_RADIO) {
30 + bpf_error("action not supported on linktype 0x%x\n", linktype);
33 + b0 = gen_mcmp(OR_LINK, offsetof(struct ieee80211_frame, i_fc[0]),
34 + BPF_B, (bpf_int32)type, (bpf_int32)mask);
40 register const u_char *eaddr;