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
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)
Defined macros
Usage of this include