summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/net/bpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/net/bpf.h')
-rw-r--r--freebsd/sys/net/bpf.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/freebsd/sys/net/bpf.h b/freebsd/sys/net/bpf.h
index d8eb7ff4..55b03b54 100644
--- a/freebsd/sys/net/bpf.h
+++ b/freebsd/sys/net/bpf.h
@@ -42,6 +42,10 @@
#ifndef _NET_BPF_H_
#define _NET_BPF_H_
+#include <sys/_eventhandler.h>
+#include <sys/ck.h>
+#include <net/dlt.h>
+
#if defined(__rtems__) && !defined(__FreeBSD__)
#define __FreeBSD__ 1
#endif /* defined(__rtems__) && !defined(__FreeBSD__) */
@@ -236,9 +240,6 @@ struct bpf_zbuf_header {
u_int _bzh_pad[5];
};
-/* Pull in data-link level type codes. */
-#include <net/dlt.h>
-
/*
* The instruction encodings.
*
@@ -412,10 +413,11 @@ SYSCTL_DECL(_net_bpf);
* bpf_peers_present() calls.
*/
struct bpf_if;
+CK_LIST_HEAD(bpfd_list, bpf_d);
struct bpf_if_ext {
- LIST_ENTRY(bpf_if) bif_next; /* list of all interfaces */
- LIST_HEAD(, bpf_d) bif_dlist; /* descriptor list */
+ CK_LIST_ENTRY(bpf_if) bif_next; /* list of all interfaces */
+ struct bpfd_list bif_dlist; /* descriptor list */
};
void bpf_bufheld(struct bpf_d *d);
@@ -439,7 +441,7 @@ bpf_peers_present(struct bpf_if *bpf)
struct bpf_if_ext *ext;
ext = (struct bpf_if_ext *)bpf;
- if (!LIST_EMPTY(&ext->bif_dlist))
+ if (!CK_LIST_EMPTY(&ext->bif_dlist))
return (1);
return (0);
}
@@ -467,12 +469,10 @@ bpf_peers_present(struct bpf_if *bpf)
*/
#define BPF_MEMWORDS 16
-#ifdef _SYS_EVENTHANDLER_H_
/* BPF attach/detach events */
struct ifnet;
typedef void (*bpf_track_fn)(void *, struct ifnet *, int /* dlt */,
int /* 1 =>'s attach */);
EVENTHANDLER_DECLARE(bpf_track, bpf_track_fn);
-#endif /* _SYS_EVENTHANDLER_H_ */
#endif /* _NET_BPF_H_ */