Commit | Line | Data |
---|---|---|
35922a21 BC |
1 | #ifndef NETINET_IN_H |
2 | #define NETINET_IN_H | |
3 | ||
4 | #include <inttypes.h> | |
5 | #include <sys/un.h> | |
6 | ||
7 | struct in6_addr | |
8 | { | |
9 | uint8_t s6_addr[16]; | |
10 | }; | |
11 | ||
12 | struct sockaddr_in6 | |
13 | { | |
14 | sa_family_t sin6_family; /* AF_INET6 */ | |
15 | in_port_t sin6_port; /* Port number */ | |
16 | uint32_t sin6_flowinfo; /* IPv6 traffic class and flow information */ | |
17 | struct in6_addr sin6_addr; /* IPv6 address */ | |
18 | uint32_t sin6_scope_id; /* Set of interfaces for a scope */ | |
19 | }; | |
20 | ||
21 | #endif /* NETINET_IN_H */ |