if_var.h (266974) | if_var.h (269243) |
---|---|
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 266974 2014-06-02 17:54:39Z marcel $ | 30 * $FreeBSD: head/sys/net/if_var.h 269243 2014-07-29 15:01:29Z 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). --- 322 unchanged lines hidden (view full) --- 361 struct sockaddr *ifa_netmask; /* used to determine subnet */ 362 struct ifnet *ifa_ifp; /* back-pointer to interface */ 363 struct carp_softc *ifa_carp; /* pointer to CARP data */ 364 TAILQ_ENTRY(ifaddr) ifa_link; /* queue macro glue */ 365 void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ 366 (int, struct rtentry *, struct rt_addrinfo *); 367 u_short ifa_flags; /* mostly rt_flags for cloning */ 368 u_int ifa_refcnt; /* references to this structure */ | 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). --- 322 unchanged lines hidden (view full) --- 361 struct sockaddr *ifa_netmask; /* used to determine subnet */ 362 struct ifnet *ifa_ifp; /* back-pointer to interface */ 363 struct carp_softc *ifa_carp; /* pointer to CARP data */ 364 TAILQ_ENTRY(ifaddr) ifa_link; /* queue macro glue */ 365 void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ 366 (int, struct rtentry *, struct rt_addrinfo *); 367 u_short ifa_flags; /* mostly rt_flags for cloning */ 368 u_int ifa_refcnt; /* references to this structure */ |
369 int ifa_metric; /* cost of going out this interface */ 370 int (*ifa_claim_addr) /* check if an addr goes to this if */ 371 (struct ifaddr *, struct sockaddr *); | |
372 373 counter_u64_t ifa_ipackets; 374 counter_u64_t ifa_opackets; 375 counter_u64_t ifa_ibytes; 376 counter_u64_t ifa_obytes; 377}; 378#endif 379 --- 249 unchanged lines hidden --- | 369 370 counter_u64_t ifa_ipackets; 371 counter_u64_t ifa_opackets; 372 counter_u64_t ifa_ibytes; 373 counter_u64_t ifa_obytes; 374}; 375#endif 376 --- 249 unchanged lines hidden --- |