# 2.11BSD#431 - /usr/src/sys/net/if.h

##### Variables

    ifnet             X
    rawintrq          X

##### Macros

    IFF_ALLMULTI      X
    IFF_BROADCAST     X
    IFF_CANTCHANGE    X
    IFF_DEBUG         X
    IFF_LOOPBACK      X
    IFF_NOARP         X
    IFF_NOTRAILERS    X
    IFF_POINTOPOINT   X
    IFF_PROMISC       X
    IFF_RUNNING       X
    IFF_UP            X
    IFNAMSIZ          X
    IFNET_SLOWHZ      X
    IFQ_MAXLEN        X
    IF_ADJ            X
    IF_DEQUEUE        X
    IF_DEQUEUEIF      X
    IF_DROP           X
    IF_ENQUEUE        X
    IF_PREPEND        X
    IF_QFULL          X
    ifa_broadaddr     X
    ifa_dstaddr       X
    ifc_buf           X
    ifc_req           X
    ifr_addr          X
    ifr_broadaddr     X
    ifr_data          X
    ifr_dstaddr       X
    ifr_flags         X
    ifr_metric        X

##### struct's

    ifaddr            X
    ifconf            X
    ifnet             X
    ifqueue           X
    ifreq             X

       1: /*
       2:  * Copyright (c) 1982, 1986 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that this notice is preserved and that due credit is given
       7:  * to the University of California at Berkeley. The name of the University
       8:  * may not be used to endorse or promote products derived from this
       9:  * software without specific prior written permission. This software
      10:  * is provided ``as is'' without express or implied warranty.
      11:  *
      12:  *	@(#)if.h	7.2.1 (2.11BSD GTE) 12/31/93
      13:  */
      14:
      15: /*
      16:  * Structures defining a network interface, providing a packet
      17:  * transport mechanism (ala level 0 of the PUP protocols).
      18:  *
      19:  * Each interface accepts output datagrams of a specified maximum
      20:  * length, and provides higher level routines with input datagrams
      21:  * received from its medium.
      22:  *
      23:  * Output occurs when the routine if_output is called, with three parameters:
      24:  *	(*ifp->if_output)(ifp, m, dst)
      25:  * Here m is the mbuf chain to be sent and dst is the destination address.
      26:  * The output routine encapsulates the supplied datagram if necessary,
      27:  * and then transmits it on its medium.
      28:  *
      29:  * On input, each interface unwraps the data received by it, and either
      30:  * places it on the input queue of a internetwork datagram routine
      31:  * and posts the associated software interrupt, or passes the datagram to a raw
      32:  * packet input routine.
      33:  *
      34:  * Routines exist for locating interfaces by their addresses
      35:  * or for locating a interface on a certain network, as well as more general
      36:  * routing and gateway routines maintaining information used to locate
      37:  * interfaces.  These routines live in the files if.c and route.c
      38:  */
      39:
      40: /*
      41:  * Structure defining a queue for a network interface.
      42:  *
      43:  * (Would like to call this struct ``if'', but C isn't PL/1.)
      44:  */
      45: struct ifnet {
      46:     char    *if_name;       /* name, e.g. ``en'' or ``lo'' */
      47:     short   if_unit;        /* sub-unit for lower level driver */
      48:     short   if_mtu;         /* maximum transmission unit */
      49:     short   if_flags;       /* up/down, broadcast, etc. */
      50:     short   if_timer;       /* time 'til if_watchdog called */
      51:     int if_metric;      /* routing metric (external only) */
      52:     struct  ifaddr *if_addrlist;    /* linked list of addresses per if */
      53:     struct  ifqueue {
      54:         struct  mbuf *ifq_head;
      55:         struct  mbuf *ifq_tail;
      56:         int ifq_len;
      57:         int ifq_maxlen;
      58:         int ifq_drops;
      59:     } if_snd;           /* output queue */
      60: /* procedure handles */
      61:     int (*if_init)();       /* init routine */
      62:     int (*if_output)();     /* output routine */
      63:     int (*if_ioctl)();      /* ioctl routine */
      64:     int (*if_reset)();      /* bus reset routine */
      65:     int (*if_watchdog)();   /* timer routine */
      66: /* generic interface statistics */
      67:     long    if_ipackets;        /* packets received on interface */
      68:     long    if_ierrors;     /* input errors on interface */
      69:     long    if_opackets;        /* packets sent on interface */
      70:     long    if_oerrors;     /* output errors on interface */
      71:     long    if_collisions;      /* collisions on csma interfaces */
      72: /* end statistics */
      73:     struct  ifnet *if_next;
      74: };
      75:
      76: #define IFF_UP      0x1     /* interface is up */
      77: #define IFF_BROADCAST   0x2     /* broadcast address valid */
      78: #define IFF_DEBUG   0x4     /* turn on debugging */
      79: #define IFF_LOOPBACK    0x8     /* is a loopback net */
      80: #define IFF_POINTOPOINT 0x10        /* interface is point-to-point link */
      81: #define IFF_NOTRAILERS  0x20        /* avoid use of trailers */
      82: #define IFF_RUNNING 0x40        /* resources allocated */
      83: #define IFF_NOARP   0x80        /* no address resolution protocol */
      84: /* next two not supported now, but reserved: */
      85: #define IFF_PROMISC 0x100       /* receive all packets */
      86: #define IFF_ALLMULTI    0x200       /* receive all multicast packets */
      87: /* flags set internally only: */
      88: #define IFF_CANTCHANGE  (IFF_BROADCAST | IFF_POINTOPOINT | IFF_RUNNING)
      89:
      90: /*
      91:  * Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
      92:  * input routines have queues of messages stored on ifqueue structures
      93:  * (defined above).  Entries are added to and deleted from these structures
      94:  * by these macros, which should be called with ipl raised to splimp().
      95:  */
      96: #define IF_QFULL(ifq)       ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
      97: #define IF_DROP(ifq)        ((ifq)->ifq_drops++)
      98: #define IF_ENQUEUE(ifq, m) { \
      99:     (m)->m_act = 0; \
     100:     if ((ifq)->ifq_tail == 0) \
     101:         (ifq)->ifq_head = m; \
     102:     else \
     103:         (ifq)->ifq_tail->m_act = m; \
     104:     (ifq)->ifq_tail = m; \
     105:     (ifq)->ifq_len++; \
     106: }
     107: #define IF_PREPEND(ifq, m) { \
     108:     (m)->m_act = (ifq)->ifq_head; \
     109:     if ((ifq)->ifq_tail == 0) \
     110:         (ifq)->ifq_tail = (m); \
     111:     (ifq)->ifq_head = (m); \
     112:     (ifq)->ifq_len++; \
     113: }
     114: /*
     115:  * Packets destined for level-1 protocol input routines
     116:  * have a pointer to the receiving interface prepended to the data.
     117:  * IF_DEQUEUEIF extracts and returns this pointer when dequeueing the packet.
     118:  * IF_ADJ should be used otherwise to adjust for its presence.
     119:  */
     120: #define IF_ADJ(m) { \
     121:     (m)->m_off += sizeof(struct ifnet *); \
     122:     (m)->m_len -= sizeof(struct ifnet *); \
     123:     if ((m)->m_len == 0) { \
     124:         struct mbuf *n; \
     125:         MFREE((m), n); \
     126:         (m) = n; \
     127:     } \
     128: }
     129: #define IF_DEQUEUEIF(ifq, m, ifp) { \
     130:     (m) = (ifq)->ifq_head; \
     131:     if (m) { \
     132:         if (((ifq)->ifq_head = (m)->m_act) == 0) \
     133:             (ifq)->ifq_tail = 0; \
     134:         (m)->m_act = 0; \
     135:         (ifq)->ifq_len--; \
     136:         (ifp) = *(mtod((m), struct ifnet **)); \
     137:         IF_ADJ(m); \
     138:     } \
     139: }
     140: #define IF_DEQUEUE(ifq, m) { \
     141:     (m) = (ifq)->ifq_head; \
     142:     if (m) { \
     143:         if (((ifq)->ifq_head = (m)->m_act) == 0) \
     144:             (ifq)->ifq_tail = 0; \
     145:         (m)->m_act = 0; \
     146:         (ifq)->ifq_len--; \
     147:     } \
     148: }
     149:
     150: #ifdef pdp11
     151: #define IFQ_MAXLEN  15
     152: #else
     153: #define IFQ_MAXLEN  50
     154: #endif
     155: #define IFNET_SLOWHZ    1       /* granularity is 1 second */
     156:
     157: /*
     158:  * The ifaddr structure contains information about one address
     159:  * of an interface.  They are maintained by the different address families,
     160:  * are allocated and attached when an address is set, and are linked
     161:  * together so all addresses for an interface can be located.
     162:  */
     163: struct ifaddr {
     164:     struct  sockaddr ifa_addr;  /* address of interface */
     165:     union {
     166:         struct  sockaddr ifu_broadaddr;
     167:         struct  sockaddr ifu_dstaddr;
     168:     } ifa_ifu;
     169: #define ifa_broadaddr   ifa_ifu.ifu_broadaddr   /* broadcast address */
     170: #define ifa_dstaddr ifa_ifu.ifu_dstaddr /* other end of p-to-p link */
     171:     struct  ifnet *ifa_ifp;     /* back-pointer to interface */
     172:     struct  ifaddr *ifa_next;   /* next address for interface */
     173: };
     174:
     175: /*
     176:  * Interface request structure used for socket
     177:  * ioctl's.  All interface ioctl's must have parameter
     178:  * definitions which begin with ifr_name.  The
     179:  * remainder may be interface specific.
     180:  */
     181: struct  ifreq {
     182: #define IFNAMSIZ    16
     183:     char    ifr_name[IFNAMSIZ];     /* if name, e.g. "en0" */
     184:     union {
     185:         struct  sockaddr ifru_addr;
     186:         struct  sockaddr ifru_dstaddr;
     187:         struct  sockaddr ifru_broadaddr;
     188:         short   ifru_flags;
     189:         int ifru_metric;
     190:         caddr_t ifru_data;
     191:     } ifr_ifru;
     192: #define ifr_addr    ifr_ifru.ifru_addr  /* address */
     193: #define ifr_dstaddr ifr_ifru.ifru_dstaddr   /* other end of p-to-p link */
     194: #define ifr_broadaddr   ifr_ifru.ifru_broadaddr /* broadcast address */
     195: #define ifr_flags   ifr_ifru.ifru_flags /* flags */
     196: #define ifr_metric  ifr_ifru.ifru_metric    /* metric */
     197: #define ifr_data    ifr_ifru.ifru_data  /* for use by interface */
     198: };
     199:
     200: /*
     201:  * Structure used in SIOCGIFCONF request.
     202:  * Used to retrieve interface configuration
     203:  * for machine (useful for programs which
     204:  * must know all networks accessible).
     205:  */
     206: struct  ifconf {
     207:     int ifc_len;        /* size of associated buffer */
     208:     union {
     209:         caddr_t ifcu_buf;
     210:         struct  ifreq *ifcu_req;
     211:     } ifc_ifcu;
     212: #define ifc_buf ifc_ifcu.ifcu_buf   /* buffer address */
     213: #define ifc_req ifc_ifcu.ifcu_req   /* array of structures returned */
     214: };
     215:
     216: #ifdef SUPERVISOR
     217: #include "../net/if_arp.h"
     218: struct  ifqueue rawintrq;       /* raw packet input queue */
     219: struct  ifnet *ifnet;
     220: struct  ifaddr *ifa_ifwithaddr(), *ifa_ifwithnet();
     221: struct  ifaddr *ifa_ifwithdstaddr();
     222: #else KERNEL
     223: #include <net/if_arp.h>
     224: #endif KERNEL

#### Defined variables

ifnet defined in line 219; used 98 times

- in /usr/src/new/crash/if.c line 37, 81-96(9), 159-163(6), 189, 213-226(6), 257-269(12), 275
- in /usr/src/new/crash/route.c line 59, 176-179(4)
- in /usr/src/sbin/routed/startup.c line 140-141(2), 289-290(2)
- in /usr/src/sys/net/if.c line 44, 59, 72, 92, 115, 142, 163, 215, 242, 333
- in /usr/src/sys/net/raw_cb.c line 109
- in /usr/src/sys/netinet/tcp_input.c line 1314
- in /usr/src/ucb/netstat/if.c line 48, 91-106(9), 170-174(6), 201, 227-240(6), 275-287(12), 293
- in /usr/src/ucb/netstat/route.c line 68, 151-154(4)

rawintrq defined in line 218; used 4 times

- in /usr/src/sys/net/raw_usrreq.c line 35, 72-75(2), 96

#### Defined struct's

ifaddr defined in line 163; used 101 times

- in line 52, 172(2), 220-221(4)
- in /usr/src/new/crash/if.c line 39(2)
- in /usr/src/sys/net/if.c line 83-88(4), 102(2), 108-113(4), 123(2), 130-135(4), 149(2), 156-161(4), 167(2), 179(2), 334(2)
- in /usr/src/sys/net/if_sl.c line 538(4)
- in /usr/src/sys/net/route.c line 222-223(4)
- in /usr/src/sys/netimp/if_imp.c line 647(4)
- in /usr/src/sys/netinet/in.c line 205(2), 241-243(4)
- in /usr/src/sys/netns/idp_usrreq.c line 59(2)
- in /usr/src/sys/netns/ns.c line 71(2), 130-132(4)
- in /usr/src/sys/netns/ns_input.c line 442(2)
- in /usr/src/sys/pdpif/if_de.c line 271(2), 1073(4)
- in /usr/src/sys/pdpif/if_ec.c line 171(2), 721(4)
- in /usr/src/sys/pdpif/if_il.c line 217(2), 703(4)
- in /usr/src/sys/pdpif/if_qe.c line 298(2), 686(4)
- in /usr/src/sys/pdpif/if_qt.c line 700(4)
- in /usr/src/sys/pdpif/if_vv.c line 244(2), 885(4)
- in /usr/src/ucb/netstat/if.c line 50(2)

ifconf defined in line 206; used 18 times

- in /usr/src/games/hunt/hunt.c line 249(2)
- in /usr/src/new/nntp/server/subnet.c line 88(2)
- in /usr/src/sbin/routed/startup.c line 34(2)
- in /usr/src/sys/net/if.c line 332(4)
- in /usr/src/usr.sbin/named/named/ns_main.c line 153(2)
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 158(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 345(2)
- in /usr/src/usr.sbin/timed/timed.c line 84(2)

ifnet defined in line 45; used 332 times

- in line 73(2), 171(2), 219(2)
- in /usr/src/new/crash/dispnet.c line 488(2)
- in /usr/src/new/crash/if.c line 37(2), 189(2)
- in /usr/src/new/crash/route.c line 59(2)
- in /usr/src/sys/net/if.c line 42(2), 57(2), 70-72(4), 87(2), 112(2), 134(2), 160(2), 177(2), 213(2), 228-233(4), 240(2), 259(2), 333(2)
- in /usr/src/sys/net/if_loop.c line 47-52(4), 63(2), 76-78(6), 84-88(4), 136(2)
- in /usr/src/sys/net/if_sl.c line 72(2), 197(2), 377(2), 394(2), 401(2), 427(2), 443(2), 486(2), 501(2), 523(2), 534(2)
- in /usr/src/sys/netimp/if_imp.c line 59(2), 96(2), 162(2), 174(2), 352(2), 361-365(8), 418(2), 460(2), 542(2), 643(2), 724(2)
- in /usr/src/sys/netinet/if_ether.c line 75(2)
- in /usr/src/sys/netinet/in.c line 190(2), 201(2), 332(2)
- in /usr/src/sys/netinet/in_pcb.c line 146(2), 163(2)
- in /usr/src/sys/netinet/ip_icmp.c line 53(2), 139(2), 357(2), 403(2)
- in /usr/src/sys/netinet/ip_input.c line 102(2), 526(2), 856(2)
- in /usr/src/sys/netinet/ip_output.c line 53(2)
- in /usr/src/sys/netinet/tcp_input.c line 1259(2), 1266(2), 1300(2)
- in /usr/src/sys/netinet/tcp_usrreq.c line 67(2)
- in /usr/src/sys/netinet/udp_usrreq.c line 58(2), 294(2)
- in /usr/src/sys/netns/idp_usrreq.c line 47(2), 370(2)
- in /usr/src/sys/netns/ns.c line 67(2), 172(2), 274(2)
- in /usr/src/sys/netns/ns_input.c line 80(2), 336(2), 439(2)
- in /usr/src/sys/netns/ns_ip.c line 48(2), 57(2), 65(2), 72(2), 90(2), 127(2), 185-187(6), 195-199(4), 318(2), 336(4), 358-365(6)
- in /usr/src/sys/netns/ns_output.c line 44(2)
- in /usr/src/sys/netns/ns_pcb.c line 115(2), 136(2)
- in /usr/src/sys/netns/spp_usrreq.c line 58(2), 1190(2)
- in /usr/src/sys/pdpif/if_acc.c line 64(2), 113(2)
- in /usr/src/sys/pdpif/if_css.c line 84(2), 136(2)
- in /usr/src/sys/pdpif/if_de.c line 174(2), 264(2), 680-685(6), 752(2), 971(2), 1020-1021(4), 1062(2), 1308(2)
- in /usr/src/sys/pdpif/if_dmc.c line 68(2), 363(2)
- in /usr/src/sys/pdpif/if_ec.c line 87(2), 120(2), 167(2), 418-423(6), 471(2), 650(2), 685-690(4), 717(2)
- in /usr/src/sys/pdpif/if_en.c line 62(2), 411(2)
- in /usr/src/sys/pdpif/if_il.c line 138(2), 213(2), 564(2), 664(2), 699(2)
- in /usr/src/sys/pdpif/if_qe.c line 189(2), 225(2), 293(2), 573(2), 681(2), 907(2)
- in /usr/src/sys/pdpif/if_qt.c line 134(2), 176(2), 307(2), 603(2), 695(2)
- in /usr/src/sys/pdpif/if_sri.c line 73(2), 127(2)
- in /usr/src/sys/pdpif/if_uba.c line 66(2), 129(2)
- in /usr/src/sys/pdpif/if_vv.c line 113(2), 129(2), 671-676(6), 733(2), 881(2)
- in /usr/src/ucb/netstat/if.c line 48(2), 201(2)
- in /usr/src/ucb/netstat/route.c line 68(2)

ifqueue defined in line 53; used 34 times

- in line 218(2)
- in /usr/src/new/crash/dispnet.c line 273(2)
- in /usr/src/sys/net/if.c line 191(2)
- in /usr/src/sys/net/if_loop.c line 68(2)
- in /usr/src/sys/netimp/if_imp.c line 66(2), 164(2)
- in /usr/src/sys/netns/ns_input.c line 52(2)
- in /usr/src/sys/netns/ns_ip.c line 131(2)
- in /usr/src/sys/pdpif/if_css.c line 337(2)
- in /usr/src/sys/pdpif/if_de.c line 627(2)
- in /usr/src/sys/pdpif/if_dmc.c line 273(2)
- in /usr/src/sys/pdpif/if_ec.c line 337(2)
- in /usr/src/sys/pdpif/if_en.c line 311(2)
- in /usr/src/sys/pdpif/if_il.c line 465(2)
- in /usr/src/sys/pdpif/if_qe.c line 811(2)
- in /usr/src/sys/pdpif/if_qt.c line 788(2)
- in /usr/src/sys/pdpif/if_vv.c line 558(2)

ifreq defined in line 181; used 56 times

- in line 210(2)
- in /usr/src/games/hunt/hunt.c line 250(2), 260(2)
- in /usr/src/new/nntp/server/subnet.c line 90(2), 118(2)
- in /usr/src/sbin/ifconfig/ifconfig.c line 33(2)
- in /usr/src/sbin/routed/startup.c line 35(2), 52(2)
- in /usr/src/sys/net/if.c line 260(2), 278(2), 336(2)
- in /usr/src/sys/netinet/in.c line 203(4)
- in /usr/src/sys/netns/ns.c line 69(4)
- in /usr/src/sys/netns/ns_ip.c line 95(2), 110(2), 285(2)
- in /usr/src/sys/pdpif/if_de.c line 1071(4)
- in /usr/src/usr.sbin/named/named/ns_main.c line 154(2), 325(2)
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 159(2), 191(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 346(2), 358(2)
- in /usr/src/usr.sbin/timed/timed.c line 85(2), 241(2)

#### Defined macros

IFF_ALLMULTI defined in line 86; never used
IFF_BROADCAST defined in line 77; used 31 times

- in line 88
- in /usr/src/sbin/ifconfig/ifconfig.c line 346
- in /usr/src/sbin/routed/startup.c line 82
- in /usr/src/sys/net/if.c line 98
- in /usr/src/sys/netinet/in.c line 267, 307, 387, 442
- in /usr/src/sys/netinet/in_pcb.c line 141
- in /usr/src/sys/netinet/ip_icmp.c line 279, 375
- in /usr/src/sys/netinet/ip_input.c line 206
- in /usr/src/sys/netinet/ip_output.c line 148
- in /usr/src/sys/netns/ns.c line 95, 219
- in /usr/src/sys/netns/ns_output.c line 106
- in /usr/src/sys/pdpif/if_de.c line 205
- in /usr/src/sys/pdpif/if_ec.c line 150
- in /usr/src/sys/pdpif/if_en.c line 113
- in /usr/src/sys/pdpif/if_il.c line 146
- in /usr/src/sys/pdpif/if_qe.c line 234
- in /usr/src/sys/pdpif/if_qt.c line 185
- in /usr/src/sys/pdpif/if_vv.c line 192
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 224, 335
- in /usr/src/usr.sbin/ntp/ntpd.c line 342, 815
- in /usr/src/usr.sbin/rwhod/rwhod.c line 389, 404
- in /usr/src/usr.sbin/timed/timed.c line 257-261(2)

IFF_CANTCHANGE defined in line 88; used 2 times

- in /usr/src/sys/net/if.c line 300-301(2)

IFF_DEBUG defined in line 78; used 5 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 68-69(2)
- in /usr/src/sys/pdpif/if_de.c line 207, 1276
- in /usr/src/sys/pdpif/if_vv.c line 97

IFF_LOOPBACK defined in line 79; used 12 times

- in /usr/src/sbin/routed/startup.c line 62
- in /usr/src/sys/net/if_loop.c line 56
- in /usr/src/sys/netinet/in.c line 361, 397
- in /usr/src/sys/netinet/in_pcb.c line 177
- in /usr/src/sys/pdpif/if_de.c line 519, 573, 817, 1083, 1090
- in /usr/src/usr.sbin/named/named/ns_main.c line 396-397(2)

IFF_NOARP defined in line 83; used 4 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 66-67(2)
- in /usr/src/sys/netinet/if_ether.c line 199, 252

IFF_NOTRAILERS defined in line 81; used 6 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 64-65(2)
- in /usr/src/sys/netinet/if_ether.c line 364, 376, 410
- in /usr/src/sys/pdpif/if_vv.c line 796

IFF_POINTOPOINT defined in line 80; used 29 times

- in line 88
- in /usr/src/sbin/ifconfig/ifconfig.c line 334, 386
- in /usr/src/sbin/routed/startup.c line 75, 123, 132, 169, 188, 284
- in /usr/src/sys/net/if.c line 116
- in /usr/src/sys/net/if_sl.c line 104
- in /usr/src/sys/netinet/in.c line 273, 288, 363, 400
- in /usr/src/sys/netinet/ip_icmp.c line 281
- in /usr/src/sys/netns/ns.c line 103, 141, 205, 255, 281
- in /usr/src/sys/netns/ns_input.c line 462
- in /usr/src/sys/netns/ns_ip.c line 78
- in /usr/src/sys/netns/ns_pcb.c line 127
- in /usr/src/sys/pdpif/if_dmc.c line 132
- in /usr/src/usr.sbin/named/named/ns_main.c line 413
- in /usr/src/usr.sbin/rwhod/rwhod.c line 389-394(2)
- in /usr/src/usr.sbin/timed/timed.c line 258

IFF_PROMISC defined in line 85; never used
IFF_RUNNING defined in line 82; used 28 times

- in line 88
- in /usr/src/sys/netimp/if_imp.c line 657
- in /usr/src/sys/pdpif/if_de.c line 277, 361, 766(2)
- in /usr/src/sys/pdpif/if_ec.c line 179, 197, 216, 485(2), 757, 773-779(3)
- in /usr/src/sys/pdpif/if_il.c line 222, 317, 577(2)
- in /usr/src/sys/pdpif/if_qe.c line 341, 586(2), 749
- in /usr/src/sys/pdpif/if_qt.c line 447, 615(2)
- in /usr/src/sys/pdpif/if_vv.c line 294, 892

IFF_UP defined in line 76; used 63 times

- in /usr/src/new/crash/if.c line 91
- in /usr/src/new/nntp/server/subnet.c line 130
- in /usr/src/sbin/ifconfig/ifconfig.c line 62-63(2)
- in /usr/src/sbin/routed/startup.c line 64
- in /usr/src/sys/net/if.c line 181, 295(2)
- in /usr/src/sys/net/if_loop.c line 145
- in /usr/src/sys/net/if_sl.c line 380, 545
- in /usr/src/sys/net/route.c line 61
- in /usr/src/sys/netimp/if_imp.c line 135, 285
- in /usr/src/sys/netns/ns_ip.c line 100, 111, 337, 374
- in /usr/src/sys/pdpif/if_de.c line 286, 766(2), 1217, 1257, 1267
- in /usr/src/sys/pdpif/if_dmc.c line 158, 170
- in /usr/src/sys/pdpif/if_ec.c line 485(2), 730, 772, 778
- in /usr/src/sys/pdpif/if_en.c line 135, 150
- in /usr/src/sys/pdpif/if_il.c line 226, 248, 577(2), 711, 741-746(2)
- in /usr/src/sys/pdpif/if_qe.c line 270-272(2), 341, 586(2), 692, 718-723(2)
- in /usr/src/sys/pdpif/if_qt.c line 447, 615(2), 739, 749
- in /usr/src/sys/pdpif/if_vv.c line 251, 260, 784, 891, 897
- in /usr/src/ucb/netstat/if.c line 101
- in /usr/src/usr.sbin/named/named/ns_main.c line 337
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 204
- in /usr/src/usr.sbin/rwhod/rwhod.c line 388
- in /usr/src/usr.sbin/timed/timed.c line 256

IFNAMSIZ defined in line 182; used 3 times

- in line 183
- in /usr/src/sys/net/if.c line 236-239(2)

IFNET_SLOWHZ defined in line 155; used 1 times

- in /usr/src/sys/net/if.c line 221

IFQ_MAXLEN defined in line 153; used 6 times

- in /usr/src/sys/net/if.c line 31
- in /usr/src/sys/net/if_sl.c line 107
- in /usr/src/sys/net/raw_usrreq.c line 35
- in /usr/src/sys/netimp/if_imp.c line 67
- in /usr/src/sys/netinet/ip_input.c line 39
- in /usr/src/sys/netns/ns_input.c line 53

IF_ADJ defined in line 120; used 3 times

- in line 137
- in /usr/src/sys/netimp/if_imp.c line 175
- in /usr/src/sys/netinet/if_ether.c line 254

IF_DEQUEUE defined in line 140; used 13 times

- in /usr/src/sys/net/if_sl.c line 289
- in /usr/src/sys/net/raw_usrreq.c line 96
- in /usr/src/sys/pdpif/if_acc.c line 256
- in /usr/src/sys/pdpif/if_css.c line 280
- in /usr/src/sys/pdpif/if_de.c line 398
- in /usr/src/sys/pdpif/if_dmc.c line 192
- in /usr/src/sys/pdpif/if_ec.c line 218
- in /usr/src/sys/pdpif/if_en.c line 186
- in /usr/src/sys/pdpif/if_il.c line 339
- in /usr/src/sys/pdpif/if_qe.c line 390
- in /usr/src/sys/pdpif/if_qt.c line 392
- in /usr/src/sys/pdpif/if_sri.c line 259
- in /usr/src/sys/pdpif/if_vv.c line 433

IF_DEQUEUEIF defined in line 129; used 3 times

- in /usr/src/sys/netimp/if_imp.c line 423
- in /usr/src/sys/netinet/ip_input.c line 111
- in /usr/src/sys/netns/ns_input.c line 92

IF_DROP defined in line 97; used 23 times

- in /usr/src/sys/net/if_loop.c line 97, 110
- in /usr/src/sys/net/if_sl.c line 228, 506
- in /usr/src/sys/netimp/if_imp.c line 368, 591
- in /usr/src/sys/netns/ns_ip.c line 206
- in /usr/src/sys/pdpif/if_de.c line 731, 883
- in /usr/src/sys/pdpif/if_dmc.c line 310, 378
- in /usr/src/sys/pdpif/if_ec.c line 449, 588
- in /usr/src/sys/pdpif/if_en.c line 390, 500
- in /usr/src/sys/pdpif/if_il.c line 525, 645
- in /usr/src/sys/pdpif/if_qe.c line 657, 867
- in /usr/src/sys/pdpif/if_qt.c line 683, 833
- in /usr/src/sys/pdpif/if_vv.c line 700, 860

IF_ENQUEUE defined in line 98; used 24 times

- in /usr/src/sys/net/if_loop.c line 102, 115
- in /usr/src/sys/net/if_sl.c line 234, 510
- in /usr/src/sys/net/raw_usrreq.c line 75
- in /usr/src/sys/netimp/if_imp.c line 371, 600
- in /usr/src/sys/netns/ns_ip.c line 212
- in /usr/src/sys/pdpif/if_de.c line 741, 893
- in /usr/src/sys/pdpif/if_dmc.c line 313, 383
- in /usr/src/sys/pdpif/if_ec.c line 453, 592
- in /usr/src/sys/pdpif/if_en.c line 393, 504
- in /usr/src/sys/pdpif/if_il.c line 528, 650
- in /usr/src/sys/pdpif/if_qe.c line 664, 871
- in /usr/src/sys/pdpif/if_qt.c line 688, 837
- in /usr/src/sys/pdpif/if_vv.c line 703, 864

IF_PREPEND defined in line 107; used 1 times

- in /usr/src/sys/netimp/if_imp.c line 633

IF_QFULL defined in line 96; used 24 times

- in /usr/src/sys/net/if_loop.c line 96, 109
- in /usr/src/sys/net/if_sl.c line 227, 505
- in /usr/src/sys/net/raw_usrreq.c line 72
- in /usr/src/sys/netimp/if_imp.c line 367, 590
- in /usr/src/sys/netns/ns_ip.c line 205
- in /usr/src/sys/pdpif/if_de.c line 730, 882
- in /usr/src/sys/pdpif/if_dmc.c line 309, 377
- in /usr/src/sys/pdpif/if_ec.c line 447, 586
- in /usr/src/sys/pdpif/if_en.c line 389, 499
- in /usr/src/sys/pdpif/if_il.c line 524, 644
- in /usr/src/sys/pdpif/if_qe.c line 656, 866
- in /usr/src/sys/pdpif/if_qt.c line 681, 831
- in /usr/src/sys/pdpif/if_vv.c line 699, 859

ifa_broadaddr defined in line 169; used 1 times

- in /usr/src/sys/net/if.c line 99

ifa_dstaddr defined in line 170; used 2 times

- in /usr/src/sys/net/if.c line 120
- in /usr/src/sys/netns/ns_input.c line 467

ifc_buf defined in line 212; used 7 times

- in /usr/src/games/hunt/hunt.c line 256
- in /usr/src/new/nntp/server/subnet.c line 103
- in /usr/src/sbin/routed/startup.c line 44
- in /usr/src/usr.sbin/named/named/ns_main.c line 320
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 183
- in /usr/src/usr.sbin/rwhod/rwhod.c line 352
- in /usr/src/usr.sbin/timed/timed.c line 236

ifc_req defined in line 213; used 8 times

- in /usr/src/games/hunt/hunt.c line 262
- in /usr/src/new/nntp/server/subnet.c line 127
- in /usr/src/sbin/routed/startup.c line 50
- in /usr/src/sys/net/if.c line 339
- in /usr/src/usr.sbin/named/named/ns_main.c line 327
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 193
- in /usr/src/usr.sbin/rwhod/rwhod.c line 357
- in /usr/src/usr.sbin/timed/timed.c line 243

ifr_addr defined in line 192; used 59 times

- in /usr/src/games/hunt/hunt.c line 264
- in /usr/src/new/nntp/server/subnet.c line 134-141(3)
- in /usr/src/sbin/ifconfig/ifconfig.c line 133, 179, 195-200(2), 248, 294, 304, 320-324(3), 330-337(5), 349-354(3), 379-389(5)
- in /usr/src/sbin/routed/startup.c line 54, 65, 97
- in /usr/src/sys/net/if.c line 347(2), 354
- in /usr/src/sys/netinet/in.c line 263, 280-281(2), 313-316(2)
- in /usr/src/sys/netns/ns.c line 88, 158
- in /usr/src/sys/netns/ns_ip.c line 359
- in /usr/src/sys/pdpif/if_de.c line 1118, 1135, 1141, 1154
- in /usr/src/usr.sbin/named/named/ns_main.c line 330, 354, 380, 387, 420
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 194, 221, 237, 249
- in /usr/src/usr.sbin/rwhod/rwhod.c line 375, 382
- in /usr/src/usr.sbin/timed/timed.c line 244, 250, 271

ifr_broadaddr defined in line 194; used 5 times

- in /usr/src/sbin/routed/startup.c line 87
- in /usr/src/sys/netinet/in.c line 309
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 234
- in /usr/src/usr.sbin/rwhod/rwhod.c line 411
- in /usr/src/usr.sbin/timed/timed.c line 278

ifr_data defined in line 197; never used
ifr_dstaddr defined in line 193; used 12 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 342, 394
- in /usr/src/sbin/routed/startup.c line 80
- in /usr/src/sys/netinet/in.c line 269, 275, 291
- in /usr/src/sys/netns/ns.c line 97, 105, 153
- in /usr/src/sys/netns/ns_ip.c line 356
- in /usr/src/usr.sbin/rwhod/rwhod.c line 401
- in /usr/src/usr.sbin/timed/timed.c line 285

ifr_flags defined in line 195; used 21 times

- in /usr/src/new/nntp/server/subnet.c line 130
- in /usr/src/sbin/ifconfig/ifconfig.c line 145, 262, 269
- in /usr/src/sbin/routed/startup.c line 60
- in /usr/src/sys/net/if.c line 285, 295, 301
- in /usr/src/sys/netns/ns_ip.c line 111
- in /usr/src/usr.sbin/named/named/ns_main.c line 337, 397, 413
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 204-206(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 388-393(3)
- in /usr/src/usr.sbin/timed/timed.c line 256-261(4)

ifr_metric defined in line 196; used 5 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 149, 278
- in /usr/src/sbin/routed/startup.c line 92
- in /usr/src/sys/net/if.c line 289, 309

#### Usage of this include

if.h used 65 times

- in /usr/src/games/hunt/hunt.h line 29
- in /usr/src/new/crash/dispnet.c line 23
- in /usr/src/new/crash/if.c line 14
- in /usr/src/new/crash/route.c line 15
- in /usr/src/new/kermit5.188/ckcnet.h line 102
- in /usr/src/new/nntp/server/subnet.c line 13
- in /usr/src/new/nntp/xfer/nntpxfer.c line 33
- in /usr/src/sbin/ifconfig/ifconfig.c line 19
- in /usr/src/sbin/routed/main.c line 24
- in /usr/src/sbin/routed/startup.c line 16
- in /usr/src/sbin/slattach/slattach.c line 9
- in /usr/src/sys/net/if.c line 26
- in /usr/src/sys/net/if_loop.c line 29
- in /usr/src/sys/net/if_sl.c line 53
- in /usr/src/sys/net/raw_cb.c line 24
- in /usr/src/sys/net/raw_usrreq.c line 23
- in /usr/src/sys/net/route.c line 24
- in /usr/src/sys/netimp/if_imp.c line 26
- in /usr/src/sys/netimp/raw_imp.c line 18
- in /usr/src/sys/netinet/if_ether.c line 38
- in /usr/src/sys/netinet/in.c line 24
- in /usr/src/sys/netinet/in_pcb.c line 26
- in /usr/src/sys/netinet/ip_icmp.c line 25
- in /usr/src/sys/netinet/ip_input.c line 25
- in /usr/src/sys/netinet/ip_output.c line 22
- in /usr/src/sys/netinet/raw_ip.c line 22
- in /usr/src/sys/netinet/tcp_debug.c line 31
- in /usr/src/sys/netinet/tcp_input.c line 23
- in /usr/src/sys/netinet/tcp_subr.c line 24
- in /usr/src/sys/netinet/tcp_timer.c line 23
- in /usr/src/sys/netinet/tcp_usrreq.c line 24
- in /usr/src/sys/netinet/udp_usrreq.c line 23
- in /usr/src/sys/netns/idp_usrreq.c line 25
- in /usr/src/sys/netns/ns.c line 25
- in /usr/src/sys/netns/ns_input.c line 27
- in /usr/src/sys/netns/ns_ip.c line 29
- in /usr/src/sys/netns/ns_output.c line 22
- in /usr/src/sys/netns/ns_pcb.c line 22
- in /usr/src/sys/netns/spp_debug.c line 25
- in /usr/src/sys/netns/spp_usrreq.c line 25
- in /usr/src/sys/pdpif/if_acc.c line 28
- in /usr/src/sys/pdpif/if_css.c line 48
- in /usr/src/sys/pdpif/if_de.h line 8
- in /usr/src/sys/pdpif/if_dmc.c line 33
- in /usr/src/sys/pdpif/if_ec.c line 60
- in /usr/src/sys/pdpif/if_en.c line 28
- in /usr/src/sys/pdpif/if_il.c line 47
- in /usr/src/sys/pdpif/if_qe.c line 124
- in /usr/src/sys/pdpif/if_qt.c line 71
- in /usr/src/sys/pdpif/if_sri.c line 26
- in /usr/src/sys/pdpif/if_uba.c line 28
- in /usr/src/sys/pdpif/if_vv.c line 58
- in /usr/src/sys/sys/sys_socket.c line 27
- in /usr/src/ucb/netstat/if.c line 20
- in /usr/src/ucb/netstat/ns.c line 28
- in /usr/src/ucb/netstat/route.c line 24
- in /usr/src/usr.sbin/arp/arp.c line 18
- in /usr/src/usr.sbin/named/named/ns_main.c line 38
- in /usr/src/usr.sbin/ntp/ntp_proto.c line 125
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 54
- in /usr/src/usr.sbin/ntp/ntpd.c line 108
- in /usr/src/usr.sbin/rwhod/rwhod.c line 23
- in /usr/src/usr.sbin/timed/timed.c line 18
- in /usr/src/usr.sbin/trpt/trpt.c line 26
- in /usr/src/usr.sbin/trsp/trsp.c line 24

Last modified: 1994-01-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1896 |