if.h (13641) | if.h (13937) |
---|---|
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 * @(#)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 * @(#)if.h 8.1 (Berkeley) 6/10/93 |
34 * $Id: if.h,v 1.26 1996/01/26 09:29:17 phk Exp $ | 34 * $Id: if.h,v 1.27 1996/01/26 22:09:54 wollman Exp $ |
35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40/* 41 * Structures defining a network interface, providing a packet 42 * transport mechanism (ala level 0 of the PUP protocols). --- 79 unchanged lines hidden (view full) --- 122 * which may be of interest to management entities. 123 */ 124struct ifnet { 125 void *if_softc; /* pointer to driver state */ 126 char *if_name; /* name, e.g. ``en'' or ``lo'' */ 127 struct ifnet *if_next; /* all struct ifnets are chained */ 128 struct ifaddr *if_addrlist; /* linked list of addresses per if */ 129 int if_pcount; /* number of promiscuous listeners */ | 35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40/* 41 * Structures defining a network interface, providing a packet 42 * transport mechanism (ala level 0 of the PUP protocols). --- 79 unchanged lines hidden (view full) --- 122 * which may be of interest to management entities. 123 */ 124struct ifnet { 125 void *if_softc; /* pointer to driver state */ 126 char *if_name; /* name, e.g. ``en'' or ``lo'' */ 127 struct ifnet *if_next; /* all struct ifnets are chained */ 128 struct ifaddr *if_addrlist; /* linked list of addresses per if */ 129 int if_pcount; /* number of promiscuous listeners */ |
130 caddr_t if_bpf; /* packet filter structure */ | 130 struct bpf_if *if_bpf; /* packet filter structure */ |
131 u_short if_index; /* numeric abbreviation for this if */ 132 short if_unit; /* sub-unit for lower level driver */ 133 short if_timer; /* time 'til if_watchdog called */ 134 short if_flags; /* up/down, broadcast, etc. */ 135 u_char if_recvquota, if_sendquota; /* quotas for send, receive */ 136 u_char if_ipending; /* interrupts pending */ 137 struct if_data if_data; 138/* procedure handles */ --- 265 unchanged lines hidden --- | 131 u_short if_index; /* numeric abbreviation for this if */ 132 short if_unit; /* sub-unit for lower level driver */ 133 short if_timer; /* time 'til if_watchdog called */ 134 short if_flags; /* up/down, broadcast, etc. */ 135 u_char if_recvquota, if_sendquota; /* quotas for send, receive */ 136 u_char if_ipending; /* interrupts pending */ 137 struct if_data if_data; 138/* procedure handles */ --- 265 unchanged lines hidden --- |