# 2.11BSD#431 - /usr/src/sys/netinet/in_var.h

##### Variables

    in_ifaddr         X
    ipintrq           X

##### Macros

    IA_SIN            X
    IFA_ROUTE         X
    ia_addr           X
    ia_broadaddr      X
    ia_dstaddr        X
    ia_ifp            X

##### struct's

    in_ifaddr         X

       1: /*
       2:  * Copyright (c) 1985, 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:  *	@(#)in_var.h	7.2 (Berkeley) 12/7/87
      13:  */
      14:
      15: /*
      16:  * Interface address, Internet version.  One of these structures
      17:  * is allocated for each interface with an Internet address.
      18:  * The ifaddr structure contains the protocol-independent part
      19:  * of the structure and is assumed to be first.
      20:  */
      21: struct in_ifaddr {
      22:     struct  ifaddr ia_ifa;      /* protocol-independent info */
      23: #define ia_addr ia_ifa.ifa_addr
      24: #define ia_broadaddr    ia_ifa.ifa_broadaddr
      25: #define ia_dstaddr  ia_ifa.ifa_dstaddr
      26: #define ia_ifp      ia_ifa.ifa_ifp
      27:     u_long  ia_net;         /* network number of interface */
      28:     u_long  ia_netmask;     /* mask of net part */
      29:     u_long  ia_subnet;      /* subnet number, including net */
      30:     u_long  ia_subnetmask;      /* mask of net + subnet */
      31:     struct  in_addr ia_netbroadcast; /* broadcast addr for (logical) net */
      32:     int ia_flags;
      33:     struct  in_ifaddr *ia_next; /* next in list of internet addresses */
      34: };
      35: /*
      36:  * Given a pointer to an in_ifaddr (ifaddr),
      37:  * return a pointer to the addr as a sockadd_in.
      38:  */
      39: #define IA_SIN(ia) ((struct sockaddr_in *)(&((struct in_ifaddr *)ia)->ia_addr))
      40: /*
      41:  * ia_flags
      42:  */
      43: #define IFA_ROUTE   0x01        /* routing entry installed */
      44:
      45: #ifdef  SUPERVISOR
      46: struct  in_ifaddr *in_ifaddr;
      47: struct  in_ifaddr *in_iaonnetof();
      48: struct  ifqueue ipintrq;        /* ip packet input queue */
      49: #endif

#### Defined variables

in_ifaddr defined in line 46; used 27 times

- in /usr/src/sys/netinet/in.c line 69, 102, 135, 158-162(2), 213, 231-236(2), 422, 441
- in /usr/src/sys/netinet/in_pcb.c line 62, 129, 139-142(3), 178, 191
- in /usr/src/sys/netinet/ip_icmp.c line 372, 382, 407
- in /usr/src/sys/netinet/ip_input.c line 119, 197, 732, 938
- in /usr/src/sys/netinet/ip_output.c line 135
- in /usr/src/sys/netns/ns_ip.c line 320-324(2)

ipintrq defined in line 48; used 15 times

- in /usr/src/sys/net/if_loop.c line 95
- in /usr/src/sys/net/if_sl.c line 505-510(3)
- in /usr/src/sys/netimp/if_imp.c line 218
- in /usr/src/sys/netinet/ip_input.c line 81, 111
- in /usr/src/sys/pdpif/if_de.c line 693
- in /usr/src/sys/pdpif/if_dmc.c line 297
- in /usr/src/sys/pdpif/if_ec.c line 431
- in /usr/src/sys/pdpif/if_en.c line 369
- in /usr/src/sys/pdpif/if_il.c line 504
- in /usr/src/sys/pdpif/if_qe.c line 846
- in /usr/src/sys/pdpif/if_qt.c line 814
- in /usr/src/sys/pdpif/if_vv.c line 690

#### Defined struct's

in_ifaddr defined in line 21; used 100 times

- in line 33(2), 46-47(4)
- in /usr/src/new/crash/dispnet.c line 494(2)
- in /usr/src/new/crash/if.c line 40(2)
- in /usr/src/sys/netimp/if_imp.c line 238(2), 336(2), 388(2)
- in /usr/src/sys/netimp/raw_imp.c line 47(2)
- in /usr/src/sys/netinet/in.c line 59(2), 87(2), 117(2), 155(2), 204(2), 227(2), 234-237(6), 255(2), 333(2), 416-425(6), 434(2)
- in /usr/src/sys/netinet/in_pcb.c line 119(2), 148(2), 185(2)
- in /usr/src/sys/netinet/ip_icmp.c line 132(2), 145(2), 359(2), 379-381(4), 401-410(6)
- in /usr/src/sys/netinet/ip_input.c line 41(2), 101(2), 516-517(4), 531(2), 571(2), 708-713(4), 728(2), 917(2)
- in /usr/src/sys/netinet/ip_output.c line 103-105(4), 133(2)
- in /usr/src/sys/netns/ns_ip.c line 317(2)
- in /usr/src/ucb/netstat/if.c line 51(2)

#### Defined macros

IA_SIN defined in line 39; used 22 times

- in /usr/src/sys/netimp/if_imp.c line 432
- in /usr/src/sys/netinet/in.c line 245
- in /usr/src/sys/netinet/in_pcb.c line 139
- in /usr/src/sys/netinet/ip_icmp.c line 255, 373, 383
- in /usr/src/sys/netinet/ip_input.c line 200, 606, 637, 663
- in /usr/src/sys/netinet/ip_output.c line 137
- in /usr/src/sys/pdpif/if_de.c line 1223-1224(2)
- in /usr/src/sys/pdpif/if_ec.c line 737-739(2)
- in /usr/src/sys/pdpif/if_il.c line 718-719(2)
- in /usr/src/sys/pdpif/if_qe.c line 698-699(2)
- in /usr/src/sys/pdpif/if_qt.c line 720-721(2)
- in /usr/src/sys/pdpif/if_vv.c line 906

IFA_ROUTE defined in line 43; used 4 times

- in /usr/src/sys/netinet/in.c line 297, 360, 372, 408

ia_addr defined in line 23; used 16 times

- in line 39
- in /usr/src/new/crash/if.c line 110, 128
- in /usr/src/sys/netinet/in.c line 263, 298-300(2), 341-342(2), 351, 398-405(4)
- in /usr/src/sys/netinet/in_pcb.c line 195
- in /usr/src/ucb/netstat/if.c line 120, 138

ia_broadaddr defined in line 24; used 9 times

- in /usr/src/sys/netinet/in.c line 269, 309, 388-389(2), 443
- in /usr/src/sys/netinet/in_pcb.c line 142
- in /usr/src/sys/netinet/ip_icmp.c line 280, 376
- in /usr/src/sys/netinet/ip_input.c line 209

ia_dstaddr defined in line 25; used 8 times

- in /usr/src/sys/netinet/in.c line 275, 290-294(3), 300, 364, 401
- in /usr/src/sys/netinet/ip_icmp.c line 282

ia_ifp defined in line 26; used 15 times

- in /usr/src/sys/netimp/raw_imp.c line 92
- in /usr/src/sys/netinet/in.c line 214, 244, 442
- in /usr/src/sys/netinet/in_pcb.c line 141, 179
- in /usr/src/sys/netinet/ip_icmp.c line 279-281(2), 375, 408
- in /usr/src/sys/netinet/ip_input.c line 204-206(2), 733
- in /usr/src/sys/netinet/ip_output.c line 112, 136

#### Usage of this include

in_var.h used 21 times

- in /usr/src/new/crash/dispnet.c line 27
- in /usr/src/new/crash/if.c line 17
- in /usr/src/sys/net/if_loop.c line 36
- in /usr/src/sys/net/if_sl.c line 59
- in /usr/src/sys/netimp/if_imp.c line 31
- in /usr/src/sys/netimp/raw_imp.c line 23
- in /usr/src/sys/netinet/in.c line 28
- in /usr/src/sys/netinet/in_pcb.c line 29
- in /usr/src/sys/netinet/ip_icmp.c line 30
- in /usr/src/sys/netinet/ip_input.c line 31
- in /usr/src/sys/netinet/ip_output.c line 29
- in /usr/src/sys/netns/ns_ip.c line 35
- in /usr/src/sys/pdpif/if_de.h line 15
- in /usr/src/sys/pdpif/if_dmc.c line 37
- in /usr/src/sys/pdpif/if_ec.c line 67
- in /usr/src/sys/pdpif/if_en.c line 33
- in /usr/src/sys/pdpif/if_il.c line 53
- in /usr/src/sys/pdpif/if_qe.c line 132
- in /usr/src/sys/pdpif/if_qt.c line 79
- in /usr/src/sys/pdpif/if_vv.c line 65
- in /usr/src/ucb/netstat/if.c line 22

Last modified: 1988-04-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1162 |