5 typedef struct sockaddr OSK_SOCKADDR
;
6 typedef unsigned char *OSK_PCHAR
;
7 typedef unsigned int OSK_UINT
;
8 typedef unsigned short OSK_UI16
;
9 typedef char * osk_caddr_t
;
11 #define SWAP_FAMILY_LEN(sabuf,s) \
12 (sabuf)->sin_family = htons((sabuf)->sin_family)
13 /* do { s = (sabuf)->sin_family; (sabuf)->sin_family = (sabuf)->sin_len; (sabuf)->sin_len = s; } while(0); */
16 * The ifaddr structure contains information about one address
17 * of an interface. They are maintained by the different address families,
18 * are allocated and attached when an address is set, and are linked
19 * together so all addresses for an interface can be located.
21 typedef struct ifaddr
{
22 struct sockaddr
*ifa_addr
; /* address of interface */
23 struct sockaddr
*ifa_dstaddr
; /* other end of p-to-p link */
24 #define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
25 struct sockaddr
*ifa_netmask
; /* used to determine subnet */
26 unsigned short ifa_flags
; /* mostly rt_flags for cloning */
27 short ifa_refcnt
; /* extra to malloc for link info */
28 int ifa_metric
; /* cost of going out this interface */
29 unsigned short ifa_mtu
; /* MTU */
30 } OSK_IFADDR
, *POSK_IFADDR
;
32 #define IFA_ROUTE RTF_UP /* route installed */
33 #define OSK_IFQ_MAXLEN 50
35 #endif/*OSKITTYPES_H*/