Remove the symlink, not the directory it points to.
[dragonfly.git] / lib / libpcap / patches / gencode.c.patch
1 $DragonFly: src/lib/libpcap/patches/Attic/gencode.c.patch,v 1.1 2007/03/16 12:59:10 sephe Exp $
2 Index: gencode.c
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
9 @@ -84,6 +84,9 @@
10  #endif /*INET6*/
11  #include <pcap-namedb.h>
12  
13 +#include <netproto/802_11/ieee80211.h>
14 +#include <netproto/802_11/ieee80211_radiotap.h>
15 +
16  #define ETHERMTU       1500
17  
18  #ifndef IPPROTO_SCTP
19 @@ -6303,6 +6306,21 @@
20         return (b0);
21  }
22  
23 +/* IEEE 802.11 wireless header */
24 +struct block *
25 +gen_p80211_type(int type, int mask)
26 +{
27 +       struct block *b0;
28 +
29 +       if (linktype != DLT_IEEE802_11 && linktype != DLT_IEEE802_11_RADIO) {
30 +               bpf_error("action not supported on linktype 0x%x\n", linktype);
31 +               /* NOTREACHED */
32 +       }
33 +       b0 = gen_mcmp(OR_LINK, offsetof(struct ieee80211_frame, i_fc[0]),
34 +                     BPF_B, (bpf_int32)type, (bpf_int32)mask);
35 +       return (b0);
36 +}
37 +
38  struct block *
39  gen_acode(eaddr, q)
40         register const u_char *eaddr;