xref: /haiku/src/libs/compat/freebsd_network/compat/net/bpf.h (revision dba28784c21beab5d397068303881fe024a76859)
1 /*
2  * Copyright 2009, Colin Günther, coling@gmx.de.
3  * Copyright 2007, Hugo Santos. All Rights Reserved.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _FBSD_COMPAT_NET_BPF_H_
7 #define _FBSD_COMPAT_NET_BPF_H_
8 
9 
10 #define DLT_EN10MB		1		/* Ethernet (10Mb) */
11 #define DLT_IEEE802_11	105		/* IEEE 802.11 wireless */
12 
13 
14 struct bpf_if;
15 
16 
17 #define bpf_mtap(bpf_if, mbuf) do { } while (0)
18 #define BPF_MTAP(ifp, m) do { } while (0)
19 #define BPF_TAP(ifp, pkt, pktlen) do { } while (0)
20 #define bpf_mtap2(bpf_if, data, dlen, mbuf) do { } while (0)
21 #define bpfattach(ifnet, dlt, hdrlen) do { } while (0);
22 #define bpfattach2(ifnet, dlt, hdrlen, bpf_if) do { } while (0)
23 #define bpfdetach(ifnet) do { } while (0);
24 
25 
26 static inline int
bpf_peers_present(struct bpf_if * bpf)27 bpf_peers_present(struct bpf_if *bpf)
28 {
29 	return 0;
30 }
31 
32 #endif	/* _FBSD_COMPAT_NET_BPF_H_ */
33