diff options
| author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2012-04-06 06:53:58 +0000 |
|---|---|---|
| committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2012-04-06 06:53:58 +0000 |
| commit | e4b3229aa5826cc4ecab491fd6ef3c482cbc9c09 (patch) | |
| tree | ead0d5369047c56ec667d8a937da41d4682a0ed6 /sys/net/bpf.h | |
| parent | 3ef51c5fb9163f2aafb1c14729e06a8bf0c4d113 (diff) | |
Notes
Diffstat (limited to 'sys/net/bpf.h')
| -rw-r--r-- | sys/net/bpf.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h index d4c369d7765e..a3474535fc1a 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -1092,14 +1092,19 @@ SYSCTL_DECL(_net_bpf); /* * Descriptor associated with each attached hardware interface. + * FIXME: this structure is exposed to external callers to speed up + * bpf_peers_present() call. However we cover all fields not needed by + * this function via BPF_INTERNAL define */ struct bpf_if { LIST_ENTRY(bpf_if) bif_next; /* list of all interfaces */ LIST_HEAD(, bpf_d) bif_dlist; /* descriptor list */ +#ifdef BPF_INTERNAL u_int bif_dlt; /* link layer type */ u_int bif_hdrlen; /* length of link header */ struct ifnet *bif_ifp; /* corresponding interface */ - struct mtx bif_mtx; /* mutex for interface */ + struct rwlock bif_lock; /* interface lock */ +#endif }; void bpf_bufheld(struct bpf_d *d); |
