if_var.h (287851) | if_var.h (291292) |
---|---|
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 287851 2015-09-16 06:23:15Z melifaro $ | 30 * $FreeBSD: head/sys/net/if_var.h 291292 2015-11-25 07:31:59Z ae $ |
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). --- 49 unchanged lines hidden (view full) --- 88TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */ 89TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */ 90TAILQ_HEAD(ifmultihead, ifmultiaddr); 91TAILQ_HEAD(ifgrouphead, ifg_group); 92 93#ifdef _KERNEL 94VNET_DECLARE(struct pfil_head, link_pfil_hook); /* packet filter hooks */ 95#define V_link_pfil_hook VNET(link_pfil_hook) | 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). --- 49 unchanged lines hidden (view full) --- 88TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */ 89TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */ 90TAILQ_HEAD(ifmultihead, ifmultiaddr); 91TAILQ_HEAD(ifgrouphead, ifg_group); 92 93#ifdef _KERNEL 94VNET_DECLARE(struct pfil_head, link_pfil_hook); /* packet filter hooks */ 95#define V_link_pfil_hook VNET(link_pfil_hook) |
96 97#define HHOOK_IPSEC_INET 0 98#define HHOOK_IPSEC_INET6 1 99#define HHOOK_IPSEC_COUNT 2 100VNET_DECLARE(struct hhook_head *, ipsec_hhh_in[HHOOK_IPSEC_COUNT]); 101VNET_DECLARE(struct hhook_head *, ipsec_hhh_out[HHOOK_IPSEC_COUNT]); 102#define V_ipsec_hhh_in VNET(ipsec_hhh_in) 103#define V_ipsec_hhh_out VNET(ipsec_hhh_out) |
|
96#endif /* _KERNEL */ 97 98typedef enum { 99 IFCOUNTER_IPACKETS = 0, 100 IFCOUNTER_IERRORS, 101 IFCOUNTER_OPACKETS, 102 IFCOUNTER_OERRORS, 103 IFCOUNTER_COLLISIONS, --- 509 unchanged lines hidden --- | 104#endif /* _KERNEL */ 105 106typedef enum { 107 IFCOUNTER_IPACKETS = 0, 108 IFCOUNTER_IERRORS, 109 IFCOUNTER_OPACKETS, 110 IFCOUNTER_OERRORS, 111 IFCOUNTER_COLLISIONS, --- 509 unchanged lines hidden --- |