2 * Copyright (c) 1997-1998 by Sun Microsystems, Inc.
7 * Copyright (c) 1985, 1986 Regents of the University of California.
8 * All rights reserved. The Berkeley software License Agreement
9 * specifies the terms and conditions for redistribution.
13 * Interface address, Internet version. One of these structures
14 * is allocated for each interface with an Internet address.
15 * The ifaddr structure contains the protocol-independent part
16 * of the structure and is assumed to be first.
19 #ifndef _NETINET_IN_VAR_H
20 #define _NETINET_IN_VAR_H
22 #pragma ident "%Z%%M% %I% %E% SMI"
23 /* in_var.h 1.3 88/08/19 SMI; from UCB 7.1 6/5/86 */
30 struct ifaddr ia_ifa
; /* protocol-independent info */
31 #define ia_addr ia_ifa.ifa_addr
32 #define ia_broadaddr ia_ifa.ifa_broadaddr
33 #define ia_dstaddr ia_ifa.ifa_dstaddr
34 #define ia_ifp ia_ifa.ifa_ifp
35 ulong_t ia_net
; /* network number of interface */
36 ulong_t ia_netmask
; /* mask of net part */
37 ulong_t ia_subnet
; /* subnet number, including net */
38 ulong_t ia_subnetmask
; /* mask of net + subnet */
39 struct in_addr ia_netbroadcast
; /* broadcast addr for (logical) net */
41 struct in_ifaddr
*ia_next
; /* next in list of internet addresses */
44 * Given a pointer to an in_ifaddr (ifaddr),
45 * return a pointer to the addr as a sockadd_in.
47 #define IA_SIN(ia) ((struct sockaddr_in *)(&((struct in_ifaddr *)ia)->ia_addr))
51 #define IFA_ROUTE 0x01 /* routing entry installed */
57 #endif /* _NETINET_IN_VAR_H */