if_var.h (108298) | if_var.h (108470) |
---|---|
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 108298 2002-12-27 00:24:35Z hsu $ | 34 * $FreeBSD: head/sys/net/if_var.h 108470 2002-12-30 21:18:15Z schweikh $ |
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). --- 316 unchanged lines hidden (view full) --- 359 mtx_init(&(ifa)->ifa_mtx, "ifaddr", NULL, MTX_DEF) 360#define IFA_LOCK(ifa) mtx_lock(&(ifa)->ifa_mtx) 361#define IFA_UNLOCK(ifa) mtx_unlock(&(ifa)->ifa_mtx) 362#define IFA_DESTROY(ifa) mtx_destroy(&(ifa)->ifa_mtx) 363 364/* 365 * The prefix structure contains information about one prefix 366 * of an interface. They are maintained by the different address families, | 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). --- 316 unchanged lines hidden (view full) --- 359 mtx_init(&(ifa)->ifa_mtx, "ifaddr", NULL, MTX_DEF) 360#define IFA_LOCK(ifa) mtx_lock(&(ifa)->ifa_mtx) 361#define IFA_UNLOCK(ifa) mtx_unlock(&(ifa)->ifa_mtx) 362#define IFA_DESTROY(ifa) mtx_destroy(&(ifa)->ifa_mtx) 363 364/* 365 * The prefix structure contains information about one prefix 366 * of an interface. They are maintained by the different address families, |
367 * are allocated and attached when an prefix or an address is set, | 367 * are allocated and attached when a prefix or an address is set, |
368 * and are linked together so all prefixes for an interface can be located. 369 */ 370struct ifprefix { 371 struct sockaddr *ifpr_prefix; /* prefix of interface */ 372 struct ifnet *ifpr_ifp; /* back-pointer to interface */ 373 TAILQ_ENTRY(ifprefix) ifpr_list; /* queue macro glue */ 374 u_char ifpr_plen; /* prefix length in bits */ 375 u_char ifpr_type; /* protocol dependent prefix type */ --- 114 unchanged lines hidden --- | 368 * and are linked together so all prefixes for an interface can be located. 369 */ 370struct ifprefix { 371 struct sockaddr *ifpr_prefix; /* prefix of interface */ 372 struct ifnet *ifpr_ifp; /* back-pointer to interface */ 373 TAILQ_ENTRY(ifprefix) ifpr_list; /* queue macro glue */ 374 u_char ifpr_plen; /* prefix length in bits */ 375 u_char ifpr_type; /* protocol dependent prefix type */ --- 114 unchanged lines hidden --- |