First page Back Continue Last page Overview Graphics
Address Structure(2)
IPv6 socket address structure
struct sockaddr_in6 {
sa_family_t sin6_family; /* AF_INET6 */
in_port_t sin6_port; /* port number */
uint32_t sin6_flowinfo; /* flow information */
struct in6_addr sin6_addr; /* IPv6 address */
uint32_t sin6_scope_id; /* Scope Identifier */
};
- Used in (most of) socket API
- AF_INET6
- IPv6 address family number
- In most systems, PF_INET6 is defined as AF_INET6
- IPv6 address alligned on 64-bit boundary
- Flow information and spope information
Notes: