summaryrefslogtreecommitdiff
path: root/sockaddr.h
blob: f4f92066d40e1bc4834c40b29f4dfc1afe5325ed (plain)
1
2
3
4
5
6
7
8
9
10
11
/* klugey def'n of a socket address struct helps hide IPV4 vs. IPV6 ugliness */

typedef union sockaddr_u {
    struct sockaddr sa;
    struct sockaddr_in sa_in;
#ifdef IPV6_ENABLE
    struct sockaddr_in6 sa_in6;
#endif /* IPV6_ENABLE */
} sockaddr_t;

/* sockaddr.h ends here */