if_var.h (228380) | if_var.h (228571) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * From: @(#)if.h 8.1 (Berkeley) 6/10/93 |
30 * $FreeBSD: head/sys/net/if_var.h 228380 2011-12-09 23:26:28Z brooks $ | 30 * $FreeBSD: head/sys/net/if_var.h 228571 2011-12-16 12:16:56Z glebius $ |
31 */ 32 33#ifndef _NET_IF_VAR_H_ 34#define _NET_IF_VAR_H_ 35 36/* 37 * Structures defining a network interface, providing a packet 38 * transport mechanism (ala level 0 of the PUP protocols). --- 25 unchanged lines hidden (view full) --- 64 */ 65struct mbuf; 66struct thread; 67struct rtentry; 68struct rt_addrinfo; 69struct socket; 70struct ether_header; 71struct carp_if; | 31 */ 32 33#ifndef _NET_IF_VAR_H_ 34#define _NET_IF_VAR_H_ 35 36/* 37 * Structures defining a network interface, providing a packet 38 * transport mechanism (ala level 0 of the PUP protocols). --- 25 unchanged lines hidden (view full) --- 64 */ 65struct mbuf; 66struct thread; 67struct rtentry; 68struct rt_addrinfo; 69struct socket; 70struct ether_header; 71struct carp_if; |
72struct carp_softc; |
|
72struct ifvlantrunk; 73struct route; 74struct vnet; 75#endif 76 77#include <sys/queue.h> /* get TAILQ macros */ 78 79#ifdef _KERNEL --- 644 unchanged lines hidden (view full) --- 724 */ 725struct ifaddr { 726 struct sockaddr *ifa_addr; /* address of interface */ 727 struct sockaddr *ifa_dstaddr; /* other end of p-to-p link */ 728#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ 729 struct sockaddr *ifa_netmask; /* used to determine subnet */ 730 struct if_data if_data; /* not all members are meaningful */ 731 struct ifnet *ifa_ifp; /* back-pointer to interface */ | 73struct ifvlantrunk; 74struct route; 75struct vnet; 76#endif 77 78#include <sys/queue.h> /* get TAILQ macros */ 79 80#ifdef _KERNEL --- 644 unchanged lines hidden (view full) --- 725 */ 726struct ifaddr { 727 struct sockaddr *ifa_addr; /* address of interface */ 728 struct sockaddr *ifa_dstaddr; /* other end of p-to-p link */ 729#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ 730 struct sockaddr *ifa_netmask; /* used to determine subnet */ 731 struct if_data if_data; /* not all members are meaningful */ 732 struct ifnet *ifa_ifp; /* back-pointer to interface */ |
733 struct carp_softc *ifa_carp; /* pointer to CARP data */ |
|
732 TAILQ_ENTRY(ifaddr) ifa_link; /* queue macro glue */ 733 void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ 734 (int, struct rtentry *, struct rt_addrinfo *); 735 u_short ifa_flags; /* mostly rt_flags for cloning */ 736 u_int ifa_refcnt; /* references to this structure */ 737 int ifa_metric; /* cost of going out this interface */ 738 int (*ifa_claim_addr) /* check if an addr goes to this if */ 739 (struct ifaddr *, struct sockaddr *); --- 178 unchanged lines hidden --- | 734 TAILQ_ENTRY(ifaddr) ifa_link; /* queue macro glue */ 735 void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ 736 (int, struct rtentry *, struct rt_addrinfo *); 737 u_short ifa_flags; /* mostly rt_flags for cloning */ 738 u_int ifa_refcnt; /* references to this structure */ 739 int ifa_metric; /* cost of going out this interface */ 740 int (*ifa_claim_addr) /* check if an addr goes to this if */ 741 (struct ifaddr *, struct sockaddr *); --- 178 unchanged lines hidden --- |