iPXE
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)
uint16_t sin6_flags
 Flags (part of struct sockaddr_tcpip)
uint16_t sin6_port
 TCP/IP port (part of struct sockaddr_tcpip)
uint16_t sin6_scope_id
 Scope ID (part of struct sockaddr_tcpip)
struct in6_addr sin6_addr
 IPv6 address.
char pad [sizeof(struct sockaddr)-(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(struct in6_addr))]
 Padding.

Detailed Description

IPv6 socket address.

Definition at line 115 of file in.h.


Field Documentation

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 dhcpv6_rx(), dns_xfer_deliver(), ndp_tx_request(), and ndp_tx_router_solicitation().

Flags (part of struct sockaddr_tcpip)

Definition at line 122 of file in.h.

TCP/IP port (part of struct sockaddr_tcpip)

Definition at line 124 of file in.h.

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().

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

Padding.

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: