IPC@CHIP® RTOS-PPC – API Documentation
BSD sockets. More...
Data structure required by the 4.4 BSD socket API used to represent an IPv6 address.
The sin6_len is the length in bytes of struct sockaddr_in6.
The sin6_family member should be set to AF_INET6(=28).
Note that an IPv4-only IP address can be represented as a 128-bit IPv6-formatted IP Address.
The socket API refers to this as an IPv4-mapped IPv6 address.
In this case, sin6_family is set to AF_INET6(=28), even though the structure contains an IPv4-only IP Address.
However, internally the stack treats it as an IPv4-only IP address.
The sin6_flowinfo member contains the IPv6 packet header Flow Label as the low-order 20 bits and Traffic Class as the next more significant 8 bits.
The high-order 4 bits of this field are reserved. This field allows the application to set the flow label and traffic class associated with the socket via a call to bind or connect.