Deleted Added
full compact
if_var.h (72084) if_var.h (72200)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * From: @(#)if.h 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * From: @(#)if.h 8.1 (Berkeley) 6/10/93
34 * $FreeBSD: head/sys/net/if_var.h 72084 2001-02-06 10:12:15Z phk $
34 * $FreeBSD: head/sys/net/if_var.h 72200 2001-02-09 06:11:45Z bmilekic $
35 */
36
37#ifndef _NET_IF_VAR_H_
38#define _NET_IF_VAR_H_
39
40/*
41 * Structures defining a network interface, providing a packet
42 * transport mechanism (ala level 0 of the PUP protocols).

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

186#define IFI_XMIT 2 /* I want to transmit */
187
188/*
189 * Output queues (ifp->if_snd) and slow device input queues (*ifp->if_slowq)
190 * are queues of messages stored on ifqueue structures
191 * (defined above). Entries are added to and deleted from these structures
192 * by these macros, which should be called with ipl raised to splimp().
193 */
35 */
36
37#ifndef _NET_IF_VAR_H_
38#define _NET_IF_VAR_H_
39
40/*
41 * Structures defining a network interface, providing a packet
42 * transport mechanism (ala level 0 of the PUP protocols).

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

186#define IFI_XMIT 2 /* I want to transmit */
187
188/*
189 * Output queues (ifp->if_snd) and slow device input queues (*ifp->if_slowq)
190 * are queues of messages stored on ifqueue structures
191 * (defined above). Entries are added to and deleted from these structures
192 * by these macros, which should be called with ipl raised to splimp().
193 */
194#define IF_LOCK(ifq) mtx_enter(&(ifq)->ifq_mtx, MTX_DEF)
195#define IF_UNLOCK(ifq) mtx_exit(&(ifq)->ifq_mtx, MTX_DEF)
194#define IF_LOCK(ifq) mtx_lock(&(ifq)->ifq_mtx)
195#define IF_UNLOCK(ifq) mtx_unlock(&(ifq)->ifq_mtx)
196#define _IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
197#define _IF_DROP(ifq) ((ifq)->ifq_drops++)
198#define _IF_QLEN(ifq) ((ifq)->ifq_len)
199
200#define _IF_ENQUEUE(ifq, m) do { \
201 (m)->m_nextpkt = NULL; \
202 if ((ifq)->ifq_tail == NULL) \
203 (ifq)->ifq_head = m; \

--- 223 unchanged lines hidden ---
196#define _IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
197#define _IF_DROP(ifq) ((ifq)->ifq_drops++)
198#define _IF_QLEN(ifq) ((ifq)->ifq_len)
199
200#define _IF_ENQUEUE(ifq, m) do { \
201 (m)->m_nextpkt = NULL; \
202 if ((ifq)->ifq_tail == NULL) \
203 (ifq)->ifq_head = m; \

--- 223 unchanged lines hidden ---