1: /*
2: * Copyright (c) 1985, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)in_var.h 7.1 (Berkeley) 6/5/86
7: */
8:
9: /*
10: * Interface address, Internet version. One of these structures
11: * is allocated for each interface with an Internet address.
12: * The ifaddr structure contains the protocol-independent part
13: * of the structure and is assumed to be first.
14: */
15: struct in_ifaddr {
16: struct ifaddr ia_ifa; /* protocol-independent info */
17: #define ia_addr ia_ifa.ifa_addr
18: #define ia_broadaddr ia_ifa.ifa_broadaddr
19: #define ia_dstaddr ia_ifa.ifa_dstaddr
20: #define ia_ifp ia_ifa.ifa_ifp
21: u_long ia_net; /* network number of interface */
22: u_long ia_netmask; /* mask of net part */
23: u_long ia_subnet; /* subnet number, including net */
24: u_long ia_subnetmask; /* mask of net + subnet */
25: struct in_addr ia_netbroadcast; /* broadcast addr for (logical) net */
26: int ia_flags;
27: struct in_ifaddr *ia_next; /* next in list of internet addresses */
28: };
29: /*
30: * Given a pointer to an in_ifaddr (ifaddr),
31: * return a pointer to the addr as a sockadd_in.
32: */
33: #define IA_SIN(ia) ((struct sockaddr_in *)(&((struct in_ifaddr *)ia)->ia_addr))
34: /*
35: * ia_flags
36: */
37: #define IFA_ROUTE 0x01 /* routing entry installed */
38:
39: #ifdef KERNEL
40: struct in_ifaddr *in_ifaddr;
41: struct in_ifaddr *in_iaonnetof();
42: struct ifqueue ipintrq; /* ip packet input queue */
43: #endif
Defined variables
in_ifaddr
defined in line
40; used 28 times
- in /usr/src/sys/netinet/in.c line
64,
95,
127,
157,
188,
206-211(2),
405,
423
- in /usr/src/sys/netinet/in_pcb.c line
54,
122,
132-135(3),
169,
179
- in /usr/src/sys/netinet/ip_icmp.c line
348,
358,
382
- in /usr/src/sys/netinet/ip_input.c line
108,
186,
631-633(2),
691,
896
- in /usr/src/sys/netinet/ip_output.c line
119
- in /usr/src/sys/netns/ns_ip.c line
314-318(2)
Defined struct's
in_ifaddr
defined in line
15; used 96 times
- in line 27(2),
40-41(4)
- in /usr/src/sys/netimp/if_imp.c line
243(2),
341(2),
393(2)
- in /usr/src/sys/netimp/raw_imp.c line
45(2)
- in /usr/src/sys/netinet/in.c line
54(2),
82(2),
110(2),
148(2),
178(2),
202(2),
209-212(6),
232(2),
316(2),
399-408(6),
417(2)
- in /usr/src/sys/netinet/in_pcb.c line
112(2),
141(2),
174(2)
- in /usr/src/sys/netinet/ip_icmp.c line
122(2),
135(2),
335(2),
355-357(4),
376-385(6)
- in /usr/src/sys/netinet/ip_input.c line
33(2),
90(2),
491(2),
505(2),
545(2),
667-672(4),
687(2),
874-875(4)
- in /usr/src/sys/netinet/ip_output.c line
90-92(4),
117(2)
- in /usr/src/sys/netns/ns_ip.c line
311(2)
- in /usr/src/sys/vaxif/raw_hy.c line
50(2)
Defined macros
IA_SIN
defined in line
33; used 25 times
ia_ifp
defined in line
20; used 16 times
Usage of this include