Data Fields
sockaddr_in6 Struct Reference

IPv6 socket address. More...

#include <in.h>

Data Fields

sa_family_t sin6_family
 Socket address family (part of struct sockaddr) More...
uint16_t sin6_flags
 Flags (part of struct sockaddr_tcpip) More...
uint16_t sin6_port
 TCP/IP port (part of struct sockaddr_tcpip) More...
uint16_t sin6_scope_id
 Scope ID (part of struct sockaddr_tcpip) More...
struct in6_addr sin6_addr
 IPv6 address. More...
char pad [sizeof(struct sockaddr) -(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(struct in6_addr))]
 Padding. More...

Detailed Description

IPv6 socket address.

Definition at line 115 of file in.h.

Field Documentation

◆ sin6_family

sa_family_t sockaddr_in6::sin6_family

Socket address family (part of struct sockaddr)

Always set to AF_INET6 for IPv6 addresses

Definition at line 120 of file in.h.

Referenced by dns_xfer_deliver(), ndp_tx_request(), and ndp_tx_router_solicitation().

◆ sin6_flags

uint16_t sockaddr_in6::sin6_flags

Flags (part of struct sockaddr_tcpip)

Definition at line 122 of file in.h.

◆ sin6_port

uint16_t sockaddr_in6::sin6_port

TCP/IP port (part of struct sockaddr_tcpip)

Definition at line 124 of file in.h.

◆ sin6_scope_id

uint16_t sockaddr_in6::sin6_scope_id

Scope ID (part of struct sockaddr_tcpip)

For link-local or multicast addresses, this is the network device index.

Definition at line 130 of file in.h.

Referenced by ipv6_netdev(), ipv6_sock_aton(), ipv6_sock_ntoa(), ipv6_tx(), ndp_tx_request(), and ndp_tx_router_solicitation().

◆ sin6_addr

struct in6_addr sockaddr_in6::sin6_addr

◆ pad

char sockaddr_in6::pad[sizeof(struct sockaddr) -(sizeof(sa_family_t)+ sizeof(uint16_t)+ sizeof(uint16_t)+ sizeof(uint16_t)+ sizeof(struct in6_addr))]


This ensures that a struct sockaddr_in6 is large enough to hold a socket address for any TCP/IP address family.

Definition at line 144 of file in.h.

The documentation for this struct was generated from the following file: