IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

sockaddr_in6 Struct Reference
[Socket type definitions]

BSD sockets. More...

Detailed Description

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.

SC2x3 V1.00 - CLIB V1.00
See also:
in6_addr , sockaddr_storage , sockaddr_in

Data Fields

unsigned char sin6_len
unsigned char sin6_family
unsigned short sin6_port
unsigned long sin6_flowinfo
struct in6_addr sin6_addr
unsigned long sin6_scope_id

Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:40 2017 by Doxygen 1.6.1