Deleted Added
full compact
if_var.h (71791) if_var.h (72084)
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 71791 2001-01-29 11:06:26Z peter $
34 * $FreeBSD: head/sys/net/if_var.h 72084 2001-02-06 10:12:15Z phk $
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).

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

78#ifdef _KERNEL
79#include <sys/mbuf.h>
80#endif /* _KERNEL */
81#include <sys/mutex.h>
82
83TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */
84TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
85TAILQ_HEAD(ifprefixhead, ifprefix);
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).

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

78#ifdef _KERNEL
79#include <sys/mbuf.h>
80#endif /* _KERNEL */
81#include <sys/mutex.h>
82
83TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */
84TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
85TAILQ_HEAD(ifprefixhead, ifprefix);
86LIST_HEAD(ifmultihead, ifmultiaddr);
86TAILQ_HEAD(ifmultihead, ifmultiaddr);
87
88/*
89 * Structure defining a queue for a network interface.
90 */
91struct ifqueue {
92 struct mbuf *ifq_head;
93 struct mbuf *ifq_tail;
94 int ifq_len;

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

347
348/*
349 * Multicast address structure. This is analogous to the ifaddr
350 * structure except that it keeps track of multicast addresses.
351 * Also, the reference count here is a count of requests for this
352 * address, not a count of pointers to this structure.
353 */
354struct ifmultiaddr {
87
88/*
89 * Structure defining a queue for a network interface.
90 */
91struct ifqueue {
92 struct mbuf *ifq_head;
93 struct mbuf *ifq_tail;
94 int ifq_len;

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

347
348/*
349 * Multicast address structure. This is analogous to the ifaddr
350 * structure except that it keeps track of multicast addresses.
351 * Also, the reference count here is a count of requests for this
352 * address, not a count of pointers to this structure.
353 */
354struct ifmultiaddr {
355 LIST_ENTRY(ifmultiaddr) ifma_link; /* queue macro glue */
355 TAILQ_ENTRY(ifmultiaddr) ifma_link; /* queue macro glue */
356 struct sockaddr *ifma_addr; /* address this membership is for */
357 struct sockaddr *ifma_lladdr; /* link-layer translation, if any */
358 struct ifnet *ifma_ifp; /* back-pointer to interface */
359 u_int ifma_refcount; /* reference count */
360 void *ifma_protospec; /* protocol-specific state, if any */
361};
362
363#ifdef _KERNEL

--- 63 unchanged lines hidden ---
356 struct sockaddr *ifma_addr; /* address this membership is for */
357 struct sockaddr *ifma_lladdr; /* link-layer translation, if any */
358 struct ifnet *ifma_ifp; /* back-pointer to interface */
359 u_int ifma_refcount; /* reference count */
360 void *ifma_protospec; /* protocol-specific state, if any */
361};
362
363#ifdef _KERNEL

--- 63 unchanged lines hidden ---