if.h revision 5184
11541Srgrimes/* 21541Srgrimes * Copyright (c) 1982, 1986, 1989, 1993 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * Redistribution and use in source and binary forms, with or without 61541Srgrimes * modification, are permitted provided that the following conditions 71541Srgrimes * are met: 81541Srgrimes * 1. Redistributions of source code must retain the above copyright 91541Srgrimes * notice, this list of conditions and the following disclaimer. 101541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111541Srgrimes * notice, this list of conditions and the following disclaimer in the 121541Srgrimes * documentation and/or other materials provided with the distribution. 131541Srgrimes * 3. All advertising materials mentioning features or use of this software 141541Srgrimes * must display the following acknowledgement: 151541Srgrimes * This product includes software developed by the University of 161541Srgrimes * California, Berkeley and its contributors. 171541Srgrimes * 4. Neither the name of the University nor the names of its contributors 181541Srgrimes * may be used to endorse or promote products derived from this software 191541Srgrimes * without specific prior written permission. 201541Srgrimes * 211541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311541Srgrimes * SUCH DAMAGE. 321541Srgrimes * 331541Srgrimes * @(#)if.h 8.1 (Berkeley) 6/10/93 345184Swollman * $Id: if.h,v 1.12 1994/12/21 18:03:41 wollman Exp $ 351541Srgrimes */ 361541Srgrimes 372168Spaul#ifndef _NET_IF_H_ 384507Sbde#define _NET_IF_H_ 392168Spaul 401541Srgrimes/* 411541Srgrimes * Structures defining a network interface, providing a packet 421541Srgrimes * transport mechanism (ala level 0 of the PUP protocols). 431541Srgrimes * 441541Srgrimes * Each interface accepts output datagrams of a specified maximum 451541Srgrimes * length, and provides higher level routines with input datagrams 461541Srgrimes * received from its medium. 471541Srgrimes * 481541Srgrimes * Output occurs when the routine if_output is called, with three parameters: 491541Srgrimes * (*ifp->if_output)(ifp, m, dst, rt) 501541Srgrimes * Here m is the mbuf chain to be sent and dst is the destination address. 511541Srgrimes * The output routine encapsulates the supplied datagram if necessary, 521541Srgrimes * and then transmits it on its medium. 531541Srgrimes * 541541Srgrimes * On input, each interface unwraps the data received by it, and either 551541Srgrimes * places it on the input queue of a internetwork datagram routine 561541Srgrimes * and posts the associated software interrupt, or passes the datagram to a raw 571541Srgrimes * packet input routine. 581541Srgrimes * 591541Srgrimes * Routines exist for locating interfaces by their addresses 601541Srgrimes * or for locating a interface on a certain network, as well as more general 611541Srgrimes * routing and gateway routines maintaining information used to locate 621541Srgrimes * interfaces. These routines live in the files if.c and route.c 631541Srgrimes */ 644507Sbde 654518Sphk#include <sys/socket.h> /* for struct sockaddr */ 664507Sbde 671541Srgrimes#ifndef _TIME_ /* XXX fast fix for SNMP, going away soon */ 681541Srgrimes#include <sys/time.h> 691541Srgrimes#endif 701541Srgrimes 711541Srgrimes#ifdef __STDC__ 721541Srgrimes/* 731541Srgrimes * Forward structure declarations for function prototypes [sic]. 741541Srgrimes */ 751541Srgrimesstruct mbuf; 761541Srgrimesstruct proc; 771541Srgrimesstruct rtentry; 781541Srgrimesstruct socket; 791541Srgrimesstruct ether_header; 801541Srgrimes#endif 811541Srgrimes/* 821541Srgrimes * Structure describing information about an interface 831541Srgrimes * which may be of interest to management entities. 841541Srgrimes */ 851541Srgrimes/* 861541Srgrimes * Structure defining a queue for a network interface. 871541Srgrimes * 881541Srgrimes * (Would like to call this struct ``if'', but C isn't PL/1.) 891541Srgrimes */ 901541Srgrimes 911541Srgrimesstruct ifnet { 921541Srgrimes char *if_name; /* name, e.g. ``en'' or ``lo'' */ 931541Srgrimes struct ifnet *if_next; /* all struct ifnets are chained */ 941541Srgrimes struct ifaddr *if_addrlist; /* linked list of addresses per if */ 951541Srgrimes int if_pcount; /* number of promiscuous listeners */ 961541Srgrimes caddr_t if_bpf; /* packet filter structure */ 971541Srgrimes u_short if_index; /* numeric abbreviation for this if */ 981541Srgrimes short if_unit; /* sub-unit for lower level driver */ 991541Srgrimes short if_timer; /* time 'til if_watchdog called */ 1001541Srgrimes short if_flags; /* up/down, broadcast, etc. */ 1011541Srgrimes struct if_data { 1021541Srgrimes/* generic interface information */ 1031541Srgrimes u_char ifi_type; /* ethernet, tokenring, etc */ 1045099Swollman u_char ifi_physical; /* e.g., AUI, Thinnet, 10base-T, etc */ 1051541Srgrimes u_char ifi_addrlen; /* media address length */ 1061541Srgrimes u_char ifi_hdrlen; /* media header length */ 1071541Srgrimes u_long ifi_mtu; /* maximum transmission unit */ 1081541Srgrimes u_long ifi_metric; /* routing metric (external only) */ 1091541Srgrimes u_long ifi_baudrate; /* linespeed */ 1101541Srgrimes/* volatile statistics */ 1111541Srgrimes u_long ifi_ipackets; /* packets received on interface */ 1121541Srgrimes u_long ifi_ierrors; /* input errors on interface */ 1131541Srgrimes u_long ifi_opackets; /* packets sent on interface */ 1141541Srgrimes u_long ifi_oerrors; /* output errors on interface */ 1151541Srgrimes u_long ifi_collisions; /* collisions on csma interfaces */ 1161541Srgrimes u_long ifi_ibytes; /* total number of octets received */ 1171541Srgrimes u_long ifi_obytes; /* total number of octets sent */ 1181541Srgrimes u_long ifi_imcasts; /* packets received via multicast */ 1191541Srgrimes u_long ifi_omcasts; /* packets sent via multicast */ 1201541Srgrimes u_long ifi_iqdrops; /* dropped on input, this interface */ 1211541Srgrimes u_long ifi_noproto; /* destined for unsupported protocol */ 1221541Srgrimes struct timeval ifi_lastchange;/* last updated */ 1231541Srgrimes } if_data; 1241541Srgrimes/* procedure handles */ 1251549Srgrimes void (*if_init) /* init routine */ 1261541Srgrimes __P((int)); 1271541Srgrimes int (*if_output) /* output routine (enqueue) */ 1281541Srgrimes __P((struct ifnet *, struct mbuf *, struct sockaddr *, 1291541Srgrimes struct rtentry *)); 1301549Srgrimes void (*if_start) /* initiate output routine */ 1311541Srgrimes __P((struct ifnet *)); 1321541Srgrimes int (*if_done) /* output complete routine */ 1331541Srgrimes __P((struct ifnet *)); /* (XXX not used; fake prototype) */ 1341541Srgrimes int (*if_ioctl) /* ioctl routine */ 1351541Srgrimes __P((struct ifnet *, int, caddr_t)); 1361549Srgrimes void (*if_reset) 1371541Srgrimes __P((int)); /* new autoconfig will permit removal */ 1381549Srgrimes void (*if_watchdog) /* timer routine */ 1391541Srgrimes __P((int)); 1401541Srgrimes struct ifqueue { 1411541Srgrimes struct mbuf *ifq_head; 1421541Srgrimes struct mbuf *ifq_tail; 1431541Srgrimes int ifq_len; 1441541Srgrimes int ifq_maxlen; 1451541Srgrimes int ifq_drops; 1461541Srgrimes } if_snd; /* output queue */ 1471541Srgrimes}; 1481541Srgrimes#define if_mtu if_data.ifi_mtu 1491541Srgrimes#define if_type if_data.ifi_type 1505099Swollman#define if_physical if_data.ifi_physical 1511541Srgrimes#define if_addrlen if_data.ifi_addrlen 1521541Srgrimes#define if_hdrlen if_data.ifi_hdrlen 1531541Srgrimes#define if_metric if_data.ifi_metric 1541541Srgrimes#define if_baudrate if_data.ifi_baudrate 1551541Srgrimes#define if_ipackets if_data.ifi_ipackets 1561541Srgrimes#define if_ierrors if_data.ifi_ierrors 1571541Srgrimes#define if_opackets if_data.ifi_opackets 1581541Srgrimes#define if_oerrors if_data.ifi_oerrors 1591541Srgrimes#define if_collisions if_data.ifi_collisions 1601541Srgrimes#define if_ibytes if_data.ifi_ibytes 1611541Srgrimes#define if_obytes if_data.ifi_obytes 1621541Srgrimes#define if_imcasts if_data.ifi_imcasts 1631541Srgrimes#define if_omcasts if_data.ifi_omcasts 1641541Srgrimes#define if_iqdrops if_data.ifi_iqdrops 1651541Srgrimes#define if_noproto if_data.ifi_noproto 1661541Srgrimes#define if_lastchange if_data.ifi_lastchange 1675181Swollman#define if_rawoutput(if, m, sa) if_output(if, m, sa, (struct rtentry *)0) 1681541Srgrimes 1691541Srgrimes#define IFF_UP 0x1 /* interface is up */ 1701541Srgrimes#define IFF_BROADCAST 0x2 /* broadcast address valid */ 1711541Srgrimes#define IFF_DEBUG 0x4 /* turn on debugging */ 1721541Srgrimes#define IFF_LOOPBACK 0x8 /* is a loopback net */ 1731541Srgrimes#define IFF_POINTOPOINT 0x10 /* interface is point-to-point link */ 1741541Srgrimes#define IFF_NOTRAILERS 0x20 /* avoid use of trailers */ 1751541Srgrimes#define IFF_RUNNING 0x40 /* resources allocated */ 1761541Srgrimes#define IFF_NOARP 0x80 /* no address resolution protocol */ 1771541Srgrimes#define IFF_PROMISC 0x100 /* receive all packets */ 1781541Srgrimes#define IFF_ALLMULTI 0x200 /* receive all multicast packets */ 1791541Srgrimes#define IFF_OACTIVE 0x400 /* transmission in progress */ 1801541Srgrimes#define IFF_SIMPLEX 0x800 /* can't hear own transmissions */ 1811541Srgrimes#define IFF_LINK0 0x1000 /* per link layer defined bit */ 1821541Srgrimes#define IFF_LINK1 0x2000 /* per link layer defined bit */ 1831541Srgrimes#define IFF_LINK2 0x4000 /* per link layer defined bit */ 1843274Swollman#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */ 1851541Srgrimes#define IFF_MULTICAST 0x8000 /* supports multicast */ 1861541Srgrimes 1871541Srgrimes/* flags set internally only: */ 1881541Srgrimes#define IFF_CANTCHANGE \ 1891541Srgrimes (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\ 1901541Srgrimes IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI) 1911541Srgrimes 1925099Swollman 1931541Srgrimes/* 1945099Swollman * These really don't belong here, but there's no other obviously appropriate 1955099Swollman * location. 1965099Swollman */ 1975099Swollman#define IFP_AUI 0 1985099Swollman#define IFP_10BASE2 1 1995099Swollman#define IFP_10BASET 2 2005099Swollman/* etc. */ 2015099Swollman 2025099Swollman/* 2031541Srgrimes * Output queues (ifp->if_snd) and internetwork datagram level (pup level 1) 2041541Srgrimes * input routines have queues of messages stored on ifqueue structures 2051541Srgrimes * (defined above). Entries are added to and deleted from these structures 2061541Srgrimes * by these macros, which should be called with ipl raised to splimp(). 2071541Srgrimes */ 2081541Srgrimes#define IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen) 2091541Srgrimes#define IF_DROP(ifq) ((ifq)->ifq_drops++) 2101541Srgrimes#define IF_ENQUEUE(ifq, m) { \ 2111541Srgrimes (m)->m_nextpkt = 0; \ 2121541Srgrimes if ((ifq)->ifq_tail == 0) \ 2131541Srgrimes (ifq)->ifq_head = m; \ 2141541Srgrimes else \ 2151541Srgrimes (ifq)->ifq_tail->m_nextpkt = m; \ 2161541Srgrimes (ifq)->ifq_tail = m; \ 2171541Srgrimes (ifq)->ifq_len++; \ 2181541Srgrimes} 2191541Srgrimes#define IF_PREPEND(ifq, m) { \ 2201541Srgrimes (m)->m_nextpkt = (ifq)->ifq_head; \ 2211541Srgrimes if ((ifq)->ifq_tail == 0) \ 2221541Srgrimes (ifq)->ifq_tail = (m); \ 2231541Srgrimes (ifq)->ifq_head = (m); \ 2241541Srgrimes (ifq)->ifq_len++; \ 2251541Srgrimes} 2261541Srgrimes#define IF_DEQUEUE(ifq, m) { \ 2271541Srgrimes (m) = (ifq)->ifq_head; \ 2281541Srgrimes if (m) { \ 2291541Srgrimes if (((ifq)->ifq_head = (m)->m_nextpkt) == 0) \ 2301541Srgrimes (ifq)->ifq_tail = 0; \ 2311541Srgrimes (m)->m_nextpkt = 0; \ 2321541Srgrimes (ifq)->ifq_len--; \ 2331541Srgrimes } \ 2341541Srgrimes} 2351541Srgrimes 2361541Srgrimes#define IFQ_MAXLEN 50 2371541Srgrimes#define IFNET_SLOWHZ 1 /* granularity is 1 second */ 2381541Srgrimes 2391541Srgrimes/* 2401541Srgrimes * The ifaddr structure contains information about one address 2411541Srgrimes * of an interface. They are maintained by the different address families, 2421541Srgrimes * are allocated and attached when an address is set, and are linked 2431541Srgrimes * together so all addresses for an interface can be located. 2441541Srgrimes */ 2451541Srgrimesstruct ifaddr { 2461541Srgrimes struct sockaddr *ifa_addr; /* address of interface */ 2471541Srgrimes struct sockaddr *ifa_dstaddr; /* other end of p-to-p link */ 2481541Srgrimes#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ 2491541Srgrimes struct sockaddr *ifa_netmask; /* used to determine subnet */ 2501541Srgrimes struct ifnet *ifa_ifp; /* back-pointer to interface */ 2511541Srgrimes struct ifaddr *ifa_next; /* next address for interface */ 2524469Sbde void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ 2534469Sbde __P((int, struct rtentry *, struct sockaddr *)); 2541541Srgrimes u_short ifa_flags; /* mostly rt_flags for cloning */ 2551541Srgrimes short ifa_refcnt; /* extra to malloc for link info */ 2561541Srgrimes int ifa_metric; /* cost of going out this interface */ 2571541Srgrimes#ifdef notdef 2581541Srgrimes struct rtentry *ifa_rt; /* XXXX for ROUTETOIF ????? */ 2591541Srgrimes#endif 2601541Srgrimes}; 2611541Srgrimes#define IFA_ROUTE RTF_UP /* route installed */ 2621541Srgrimes 2631541Srgrimes/* 2641541Srgrimes * Message format for use in obtaining information about interfaces 2651541Srgrimes * from getkerninfo and the routing socket 2661541Srgrimes */ 2671541Srgrimesstruct if_msghdr { 2681541Srgrimes u_short ifm_msglen; /* to skip over non-understood messages */ 2691541Srgrimes u_char ifm_version; /* future binary compatability */ 2701541Srgrimes u_char ifm_type; /* message type */ 2711541Srgrimes int ifm_addrs; /* like rtm_addrs */ 2721541Srgrimes int ifm_flags; /* value of if_flags */ 2731541Srgrimes u_short ifm_index; /* index for associated ifp */ 2741541Srgrimes struct if_data ifm_data;/* statistics and other data about if */ 2751541Srgrimes}; 2761541Srgrimes 2771541Srgrimes/* 2781541Srgrimes * Message format for use in obtaining information about interface addresses 2791541Srgrimes * from getkerninfo and the routing socket 2801541Srgrimes */ 2811541Srgrimesstruct ifa_msghdr { 2821541Srgrimes u_short ifam_msglen; /* to skip over non-understood messages */ 2831541Srgrimes u_char ifam_version; /* future binary compatability */ 2841541Srgrimes u_char ifam_type; /* message type */ 2851541Srgrimes int ifam_addrs; /* like rtm_addrs */ 2861541Srgrimes int ifam_flags; /* value of ifa_flags */ 2871541Srgrimes u_short ifam_index; /* index for associated ifp */ 2881541Srgrimes int ifam_metric; /* value of ifa_metric */ 2891541Srgrimes}; 2901541Srgrimes 2911541Srgrimes/* 2921541Srgrimes * Interface request structure used for socket 2931541Srgrimes * ioctl's. All interface ioctl's must have parameter 2941541Srgrimes * definitions which begin with ifr_name. The 2951541Srgrimes * remainder may be interface specific. 2961541Srgrimes */ 2971541Srgrimesstruct ifreq { 2981541Srgrimes#define IFNAMSIZ 16 2991541Srgrimes char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 3001541Srgrimes union { 3011541Srgrimes struct sockaddr ifru_addr; 3021541Srgrimes struct sockaddr ifru_dstaddr; 3031541Srgrimes struct sockaddr ifru_broadaddr; 3041541Srgrimes short ifru_flags; 3051541Srgrimes int ifru_metric; 3061941Sdg int ifru_mtu; 3075184Swollman int ifru_phys; 3081541Srgrimes caddr_t ifru_data; 3091541Srgrimes } ifr_ifru; 3101541Srgrimes#define ifr_addr ifr_ifru.ifru_addr /* address */ 3111541Srgrimes#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */ 3121541Srgrimes#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ 3131541Srgrimes#define ifr_flags ifr_ifru.ifru_flags /* flags */ 3141541Srgrimes#define ifr_metric ifr_ifru.ifru_metric /* metric */ 3151941Sdg#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ 3165184Swollman#define ifr_phys ifr_ifru.ifru_phys; /* physical wire */ 3171541Srgrimes#define ifr_data ifr_ifru.ifru_data /* for use by interface */ 3181541Srgrimes}; 3191541Srgrimes 3201541Srgrimesstruct ifaliasreq { 3211541Srgrimes char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 3221541Srgrimes struct sockaddr ifra_addr; 3231541Srgrimes struct sockaddr ifra_broadaddr; 3241541Srgrimes struct sockaddr ifra_mask; 3251541Srgrimes}; 3261541Srgrimes 3271541Srgrimes/* 3281541Srgrimes * Structure used in SIOCGIFCONF request. 3291541Srgrimes * Used to retrieve interface configuration 3301541Srgrimes * for machine (useful for programs which 3311541Srgrimes * must know all networks accessible). 3321541Srgrimes */ 3331541Srgrimesstruct ifconf { 3341541Srgrimes int ifc_len; /* size of associated buffer */ 3351541Srgrimes union { 3361541Srgrimes caddr_t ifcu_buf; 3371541Srgrimes struct ifreq *ifcu_req; 3381541Srgrimes } ifc_ifcu; 3391541Srgrimes#define ifc_buf ifc_ifcu.ifcu_buf /* buffer address */ 3401541Srgrimes#define ifc_req ifc_ifcu.ifcu_req /* array of structures returned */ 3411541Srgrimes}; 3421541Srgrimes 3431541Srgrimes#include <net/if_arp.h> 3441541Srgrimes 3451541Srgrimes#ifdef KERNEL 3461541Srgrimes#define IFAFREE(ifa) \ 3471541Srgrimes if ((ifa)->ifa_refcnt <= 0) \ 3481541Srgrimes ifafree(ifa); \ 3491541Srgrimes else \ 3501541Srgrimes (ifa)->ifa_refcnt--; 3511541Srgrimes 3521541Srgrimesstruct ifnet *ifnet; 3531541Srgrimes 3541541Srgrimesvoid ether_ifattach __P((struct ifnet *)); 3551541Srgrimesvoid ether_input __P((struct ifnet *, struct ether_header *, struct mbuf *)); 3561541Srgrimesint ether_output __P((struct ifnet *, 3571541Srgrimes struct mbuf *, struct sockaddr *, struct rtentry *)); 3581541Srgrimeschar *ether_sprintf __P((u_char *)); 3591541Srgrimes 3601541Srgrimesvoid if_attach __P((struct ifnet *)); 3611541Srgrimesvoid if_down __P((struct ifnet *)); 3621541Srgrimesvoid if_qflush __P((struct ifqueue *)); 3631541Srgrimesvoid if_slowtimo __P((void *)); 3641541Srgrimesvoid if_up __P((struct ifnet *)); 3651541Srgrimes#ifdef vax 3661541Srgrimesvoid ifubareset __P((int)); 3671541Srgrimes#endif 3681541Srgrimesint ifconf __P((int, caddr_t)); 3692112Swollman/*void ifinit __P((void));*/ /* declared in systm.h for main() */ 3701541Srgrimesint ifioctl __P((struct socket *, int, caddr_t, struct proc *)); 3711541Srgrimesint ifpromisc __P((struct ifnet *, int)); 3721541Srgrimesstruct ifnet *ifunit __P((char *)); 3731541Srgrimes 3741541Srgrimesstruct ifaddr *ifa_ifwithaddr __P((struct sockaddr *)); 3751541Srgrimesstruct ifaddr *ifa_ifwithaf __P((int)); 3761541Srgrimesstruct ifaddr *ifa_ifwithdstaddr __P((struct sockaddr *)); 3771541Srgrimesstruct ifaddr *ifa_ifwithnet __P((struct sockaddr *)); 3781541Srgrimesstruct ifaddr *ifa_ifwithroute __P((int, struct sockaddr *, 3791541Srgrimes struct sockaddr *)); 3801541Srgrimesstruct ifaddr *ifaof_ifpforaddr __P((struct sockaddr *, struct ifnet *)); 3811541Srgrimesvoid ifafree __P((struct ifaddr *)); 3821541Srgrimesvoid link_rtrequest __P((int, struct rtentry *, struct sockaddr *)); 3831541Srgrimes 3841541Srgrimesint loioctl __P((struct ifnet *, int, caddr_t)); 3851549Srgrimesvoid loopattach __P((void)); 3861541Srgrimesint looutput __P((struct ifnet *, 3871541Srgrimes struct mbuf *, struct sockaddr *, struct rtentry *)); 3881541Srgrimesvoid lortrequest __P((int, struct rtentry *, struct sockaddr *)); 3894507Sbde#endif /* KERNEL */ 3902168Spaul 3914507Sbde#endif /* !_NET_IF_H_ */ 392