# 2.11BSD#431 - /usr/src/sys/netns/ns_if.h

##### Variables

    ns_ifaddr         X
    nsintrq           X

##### Macros

    ETHERTYPE_NS      X
    IA_SNS            X
    IFA_ROUTE         X
    ia_addr           X
    ia_broadaddr      X
    ia_dstaddr        X
    ia_ifp            X

##### struct's

    ns_ifaddr         X
    nsip_req          X

       1: /*
       2:  * Copyright (c) 1984, 1985, 1986, 1987 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:  *      @(#)ns_if.h	7.2 (Berkeley) 1/20/88
      13:  */
      14:
      15: /*
      16:  * Interface address, xerox 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:
      22: struct ns_ifaddr {
      23:     struct  ifaddr ia_ifa;      /* protocol-independent info */
      24: #define ia_addr ia_ifa.ifa_addr
      25: #define ia_broadaddr    ia_ifa.ifa_broadaddr
      26: #define ia_dstaddr  ia_ifa.ifa_dstaddr
      27: #define ia_ifp      ia_ifa.ifa_ifp
      28:     union   ns_net  ia_net;     /* network number of interface */
      29:     int ia_flags;
      30:     struct  ns_ifaddr *ia_next; /* next in list of internet addresses */
      31: };
      32:
      33: /*
      34:  * Given a pointer to an ns_ifaddr (ifaddr),
      35:  * return a pointer to the addr as a sockadd_ns.
      36:  */
      37:
      38: #define IA_SNS(ia) ((struct sockaddr_ns *)(&((struct ns_ifaddr *)ia)->ia_addr))
      39: /*
      40:  * ia_flags
      41:  */
      42: #define IFA_ROUTE   0x01        /* routing entry installed */
      43:
      44: /* This is not the right place for this but where is? */
      45: #define ETHERTYPE_NS    0x0600
      46:
      47: #ifdef  NSIP
      48: struct nsip_req {
      49:     struct sockaddr rq_ns;  /* must be ns format destination */
      50:     struct sockaddr rq_ip;  /* must be ip format gateway */
      51:     short rq_flags;
      52: };
      53: #endif
      54:
      55: #ifdef  SUPERVISOR
      56: struct  ns_ifaddr *ns_ifaddr;
      57: struct  ns_ifaddr *ns_iaonnetof();
      58: struct  ifqueue nsintrq;    /* XNS input packet queue */
      59: #endif

#### Defined variables

ns_ifaddr defined in line 56; used 6 times

- in /usr/src/sys/netns/ns.c line 79, 120-125(2), 279
- in /usr/src/sys/netns/ns_pcb.c line 148, 160

nsintrq defined in line 58; used 8 times

- in /usr/src/sys/net/if_loop.c line 108
- in /usr/src/sys/netns/ns_input.c line 66, 92
- in /usr/src/sys/netns/ns_ip.c line 131
- in /usr/src/sys/pdpif/if_ec.c line 440
- in /usr/src/sys/pdpif/if_il.c line 514
- in /usr/src/sys/pdpif/if_qe.c line 856
- in /usr/src/sys/pdpif/if_qt.c line 823

#### Defined struct's

ns_ifaddr defined in line 22; used 42 times

- in line 30(2), 56-57(4)
- in /usr/src/sys/netns/ns.c line 32(2), 70(2), 86(2), 93(2), 101(2), 116(2), 123-126(6), 173(2), 268-275(6)
- in /usr/src/sys/netns/ns_input.c line 335(2)
- in /usr/src/sys/netns/ns_output.c line 73(2)
- in /usr/src/sys/netns/ns_pcb.c line 102(2), 123(2), 154(2)

nsip_req defined in line 48; used 6 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 184(2)
- in /usr/src/sys/netns/ns_ip.c line 290(4)

#### Defined macros

ETHERTYPE_NS defined in line 45; used 5 times

- in /usr/src/sys/pdpif/if_de.c line 797
- in /usr/src/sys/pdpif/if_ec.c line 528
- in /usr/src/sys/pdpif/if_il.c line 594
- in /usr/src/sys/pdpif/if_qe.c line 605
- in /usr/src/sys/pdpif/if_qt.c line 634

IA_SNS defined in line 38; used 8 times

- in /usr/src/sys/netns/idp_usrreq.c line 64
- in /usr/src/sys/netns/ns.c line 134, 177
- in /usr/src/sys/pdpif/if_de.c line 1230
- in /usr/src/sys/pdpif/if_ec.c line 745
- in /usr/src/sys/pdpif/if_il.c line 725
- in /usr/src/sys/pdpif/if_qe.c line 705
- in /usr/src/sys/pdpif/if_qt.c line 703

IFA_ROUTE defined in line 42; used 4 times

- in /usr/src/sys/netns/ns.c line 143-146(2), 204, 261

ia_addr defined in line 24; used 10 times

- in line 38
- in /usr/src/sys/netns/ns.c line 88, 144, 206-209(2), 216, 256-259(2)
- in /usr/src/sys/netns/ns_ip.c line 329
- in /usr/src/sys/netns/ns_pcb.c line 164

ia_broadaddr defined in line 25; used 3 times

- in /usr/src/sys/netns/ns.c line 97, 220, 259

ia_dstaddr defined in line 26; used 6 times

- in /usr/src/sys/netns/ns.c line 105, 144, 153, 209, 256, 282

ia_ifp defined in line 27; used 6 times

- in /usr/src/sys/netns/ns.c line 80, 133, 280
- in /usr/src/sys/netns/ns_ip.c line 321
- in /usr/src/sys/netns/ns_output.c line 79
- in /usr/src/sys/netns/ns_pcb.c line 149

#### Usage of this include

ns_if.h used 13 times

- in /usr/src/sbin/ifconfig/ifconfig.c line 25
- in /usr/src/sys/net/if_loop.c line 42
- in /usr/src/sys/netns/idp_usrreq.c line 30
- in /usr/src/sys/netns/ns.c line 30
- in /usr/src/sys/netns/ns_input.c line 32
- in /usr/src/sys/netns/ns_ip.c line 44
- in /usr/src/sys/netns/ns_output.c line 26
- in /usr/src/sys/netns/ns_pcb.c line 27
- in /usr/src/sys/pdpif/if_de.h line 22
- in /usr/src/sys/pdpif/if_ec.c line 74
- in /usr/src/sys/pdpif/if_il.c line 61
- in /usr/src/sys/pdpif/if_qe.c line 139
- in /usr/src/sys/pdpif/if_qt.c line 86

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