Data Fields
sockaddr Struct Reference

Generalized socket address structure. More...

#include <socket.h>

Data Fields

sa_family_t sa_family
 Socket address family. More...
char pad [SA_LEN - sizeof(sa_family_t)]
 Padding. More...

Detailed Description

Generalized socket address structure.

This contains the fields common to socket addresses for all address families.

Definition at line 96 of file socket.h.

Field Documentation

◆ sa_family

sa_family_t sockaddr::sa_family

Socket address family.

This is an AF_XXX constant.

Definition at line 101 of file socket.h.

Referenced by comboot_resolv_done(), efi_pxe_ip_sockaddr(), ibft_complete(), nslookup_resolv_done(), sock_aton(), sock_ntoa(), and x509_check_ipaddress().

◆ pad

char sockaddr::pad[SA_LEN - sizeof(sa_family_t)]


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

Definition at line 108 of file socket.h.

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