iPXE
|
IPv4 socket address. More...
#include <in.h>
Data Fields | |
sa_family_t | sin_family |
Socket address family (part of struct sockaddr ) More... | |
uint16_t | sin_flags |
Flags (part of struct sockaddr_tcpip ) More... | |
uint16_t | sin_port |
TCP/IP port (part of struct sockaddr_tcpip ) More... | |
uint16_t | sin_scope_id |
Scope ID (part of struct sockaddr_tcpip ) More... | |
struct in_addr | sin_addr |
IPv4 address. More... | |
char | pad [sizeof(struct sockaddr) -(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(struct in_addr))] |
Padding. More... | |
sa_family_t sockaddr_in::sin_family |
Socket address family (part of struct sockaddr
)
Always set to AF_INET
for IPv4 addresses
Definition at line 89 of file in.h.
Referenced by dns_xfer_deliver(), pxe_udp_deliver(), slam_open(), start_dhcp(), and start_pxebs().
uint16_t sockaddr_in::sin_flags |
Flags (part of struct sockaddr_tcpip
)
uint16_t sockaddr_in::sin_port |
TCP/IP port (part of struct sockaddr_tcpip
)
Definition at line 93 of file in.h.
Referenced by gdbudp_configure(), gdbudp_recv(), gdbudp_send(), pxe_udp_deliver(), pxenv_udp_write(), start_dhcp(), start_pxebs(), and tftp_set_mtftp_port().
uint16_t sockaddr_in::sin_scope_id |
Scope ID (part of struct sockaddr_tcpip
)
For multicast addresses, this is the network device index.
Definition at line 98 of file in.h.
Referenced by ipv4_netdev(), and ipv4_tx().
struct in_addr sockaddr_in::sin_addr |
IPv4 address.
Definition at line 100 of file in.h.
Referenced by comboot_resolv_done(), dhcp_request_rx(), dhcp_tx(), dns_xfer_deliver(), gdbudp_configure(), gdbudp_recv(), gdbudp_send(), ipv4_netdev(), ipv4_sock_aton(), ipv4_sock_ntoa(), ipv4_tx(), nslookup_resolv_done(), pxe_udp_deliver(), pxenv_udp_open(), start_pxebs(), tftp_set_mtftp_address(), and x509_check_ipaddress().
char sockaddr_in::pad[sizeof(struct sockaddr) -(sizeof(sa_family_t)+ sizeof(uint16_t)+ sizeof(uint16_t)+ sizeof(uint16_t)+ sizeof(struct in_addr))] |
Padding.
This ensures that a struct sockaddr_in
is large enough to hold a socket address for any TCP/IP address family.