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)
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
ia_ifp
defined in line
26; used 15 times
Usage of this include