iPXE
Data Fields
sockaddr_tcpip Struct Reference

TCP/IP socket address. More...

#include <tcpip.h>

Data Fields

sa_family_t st_family
 Socket address family (part of struct sockaddr) More...
 
uint16_t st_flags
 Flags. More...
 
uint16_t st_port
 TCP/IP port. More...
 
uint16_t st_scope_id
 Scope ID. More...
 
char pad [sizeof(struct sockaddr) -(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t))]
 Padding. More...
 

Detailed Description

TCP/IP socket address.

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

Definition at line 75 of file tcpip.h.

Field Documentation

◆ st_family

sa_family_t sockaddr_tcpip::st_family

Socket address family (part of struct sockaddr)

Definition at line 77 of file tcpip.h.

Referenced by icmp_tx_echo_request(), tcpip_mtu(), tcpip_netdev(), tcpip_tx(), tftp_rx(), tftp_send_packet(), tftp_timer_expired(), and udp_demux().

◆ st_flags

uint16_t sockaddr_tcpip::st_flags

Flags.

Definition at line 79 of file tcpip.h.

Referenced by nfs_connect(), and tcpip_bind().

◆ st_port

uint16_t sockaddr_tcpip::st_port

◆ st_scope_id

uint16_t sockaddr_tcpip::st_scope_id

Scope ID.

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

Definition at line 87 of file tcpip.h.

◆ pad

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

Padding.

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

Definition at line 98 of file tcpip.h.

Referenced by udp_demux().


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