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)
uint16_t st_flags
uint16_t st_port
 TCP/IP port.
uint16_t st_scope_id
 Scope ID.
char pad [sizeof(struct sockaddr)-(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_t))]

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

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


Definition at line 79 of file tcpip.h.

Referenced by nfs_connect(), and tcpip_bind().

Scope ID.

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

Definition at line 87 of file tcpip.h.

char sockaddr_tcpip::pad[sizeof(struct sockaddr)-(sizeof(sa_family_t)+sizeof(uint16_t)+sizeof(uint16_t)+sizeof(uint16_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 98 of file tcpip.h.

Referenced by udp_demux().

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