if_var.h (183550) | if_var.h (185162) |
---|---|
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 183550 2008-10-02 15:37:58Z zec $ | 30 * $FreeBSD: head/sys/net/if_var.h 185162 2008-11-22 05:55:56Z kmacy $ |
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). --- 142 unchanged lines hidden (view full) --- 181 struct task if_starttask; /* task for IFF_NEEDSGIANT */ 182 struct task if_linktask; /* task for link change events */ 183 struct mtx if_addr_mtx; /* mutex to protect address lists */ 184 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */ 185 TAILQ_HEAD(, ifg_list) if_groups; /* linked list of groups per if */ 186 /* protected by if_addr_mtx */ 187 void *if_pf_kif; 188 void *if_lagg; /* lagg glue */ | 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). --- 142 unchanged lines hidden (view full) --- 181 struct task if_starttask; /* task for IFF_NEEDSGIANT */ 182 struct task if_linktask; /* task for link change events */ 183 struct mtx if_addr_mtx; /* mutex to protect address lists */ 184 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */ 185 TAILQ_HEAD(, ifg_list) if_groups; /* linked list of groups per if */ 186 /* protected by if_addr_mtx */ 187 void *if_pf_kif; 188 void *if_lagg; /* lagg glue */ |
189 void *if_pspare[10]; /* multiq/TOE 3; vimage 3; general use 4 */ | 189 void *if_pspare[8]; /* multiq/TOE 3; vimage 3; general use 4 */ 190 void (*if_qflush) /* flush any queues */ 191 (struct ifnet *); 192 int (*if_transmit) /* initiate output routine */ 193 (struct ifnet *, struct mbuf *); |
190 int if_ispare[2]; /* general use 2 */ 191}; 192 193typedef void if_init_f_t(void *); 194 195/* 196 * XXX These aliases are terribly dangerous because they could apply 197 * to anything. --- 483 unchanged lines hidden (view full) --- 681int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3); 682int if_setlladdr(struct ifnet *, const u_char *, int); 683void if_up(struct ifnet *); 684/*void ifinit(void);*/ /* declared in systm.h for main() */ 685int ifioctl(struct socket *, u_long, caddr_t, struct thread *); 686int ifpromisc(struct ifnet *, int); 687struct ifnet *ifunit(const char *); 688 | 194 int if_ispare[2]; /* general use 2 */ 195}; 196 197typedef void if_init_f_t(void *); 198 199/* 200 * XXX These aliases are terribly dangerous because they could apply 201 * to anything. --- 483 unchanged lines hidden (view full) --- 685int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3); 686int if_setlladdr(struct ifnet *, const u_char *, int); 687void if_up(struct ifnet *); 688/*void ifinit(void);*/ /* declared in systm.h for main() */ 689int ifioctl(struct socket *, u_long, caddr_t, struct thread *); 690int ifpromisc(struct ifnet *, int); 691struct ifnet *ifunit(const char *); 692 |
693void ifq_attach(struct ifaltq *, struct ifnet *ifp); 694void ifq_detach(struct ifaltq *); 695 |
|
689struct ifaddr *ifa_ifwithaddr(struct sockaddr *); 690struct ifaddr *ifa_ifwithbroadaddr(struct sockaddr *); 691struct ifaddr *ifa_ifwithdstaddr(struct sockaddr *); 692struct ifaddr *ifa_ifwithnet(struct sockaddr *); 693struct ifaddr *ifa_ifwithroute(int, struct sockaddr *, struct sockaddr *); 694struct ifaddr *ifa_ifwithroute_fib(int, struct sockaddr *, struct sockaddr *, u_int); 695 696struct ifaddr *ifaof_ifpforaddr(struct sockaddr *, struct ifnet *); --- 24 unchanged lines hidden --- | 696struct ifaddr *ifa_ifwithaddr(struct sockaddr *); 697struct ifaddr *ifa_ifwithbroadaddr(struct sockaddr *); 698struct ifaddr *ifa_ifwithdstaddr(struct sockaddr *); 699struct ifaddr *ifa_ifwithnet(struct sockaddr *); 700struct ifaddr *ifa_ifwithroute(int, struct sockaddr *, struct sockaddr *); 701struct ifaddr *ifa_ifwithroute_fib(int, struct sockaddr *, struct sockaddr *, u_int); 702 703struct ifaddr *ifaof_ifpforaddr(struct sockaddr *, struct ifnet *); --- 24 unchanged lines hidden --- |