Deleted Added
full compact
bpfdesc.h (101849) bpfdesc.h (106927)
1/*
2 * Copyright (c) 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from the Stanford/CMU enet packet filter,
6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed
7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
8 * Berkeley Laboratory.

--- 23 unchanged lines hidden (view full) ---

32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)bpfdesc.h 8.1 (Berkeley) 6/10/93
39 *
1/*
2 * Copyright (c) 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from the Stanford/CMU enet packet filter,
6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed
7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence
8 * Berkeley Laboratory.

--- 23 unchanged lines hidden (view full) ---

32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)bpfdesc.h 8.1 (Berkeley) 6/10/93
39 *
40 * $FreeBSD: head/sys/net/bpfdesc.h 101849 2002-08-14 01:37:22Z rwatson $
40 * $FreeBSD: head/sys/net/bpfdesc.h 106927 2002-11-14 23:24:13Z sam $
41 */
42
43#ifndef _NET_BPFDESC_H_
44#define _NET_BPFDESC_H_
45
46#include <sys/_label.h>
47#include <sys/callout.h>
48#include <sys/selinfo.h>

--- 56 unchanged lines hidden (view full) ---

105#define BPFD_UNLOCK(bd) mtx_unlock(&(bd)->bd_mtx)
106
107/*
108 * Descriptor associated with each attached hardware interface.
109 */
110struct bpf_if {
111 struct bpf_if *bif_next; /* list of all interfaces */
112 struct bpf_d *bif_dlist; /* descriptor list */
41 */
42
43#ifndef _NET_BPFDESC_H_
44#define _NET_BPFDESC_H_
45
46#include <sys/_label.h>
47#include <sys/callout.h>
48#include <sys/selinfo.h>

--- 56 unchanged lines hidden (view full) ---

105#define BPFD_UNLOCK(bd) mtx_unlock(&(bd)->bd_mtx)
106
107/*
108 * Descriptor associated with each attached hardware interface.
109 */
110struct bpf_if {
111 struct bpf_if *bif_next; /* list of all interfaces */
112 struct bpf_d *bif_dlist; /* descriptor list */
113 struct bpf_if **bif_driverp; /* pointer into softc */
113 u_int bif_dlt; /* link layer type */
114 u_int bif_hdrlen; /* length of header (with padding) */
115 struct ifnet *bif_ifp; /* corresponding interface */
116 struct mtx bif_mtx; /* mutex for interface */
117};
118
119#define BPFIF_LOCK(bif) mtx_lock(&(bif)->bif_mtx)
120#define BPFIF_UNLOCK(bif) mtx_unlock(&(bif)->bif_mtx)
121
122#endif
114 u_int bif_dlt; /* link layer type */
115 u_int bif_hdrlen; /* length of header (with padding) */
116 struct ifnet *bif_ifp; /* corresponding interface */
117 struct mtx bif_mtx; /* mutex for interface */
118};
119
120#define BPFIF_LOCK(bif) mtx_lock(&(bif)->bif_mtx)
121#define BPFIF_UNLOCK(bif) mtx_unlock(&(bif)->bif_mtx)
122
123#endif