Module read_sockaddr

Source
Expand description

The BSD sockets API requires us to read the sa_family field before we can interpret the rest of a sockaddr produced by the kernel.

Structsยง

sockaddr_header ๐Ÿ”’

Functionsยง

initialize_family_to_unspec ๐Ÿ”’ โš 
Set the sa_family field of a socket address to AF_UNSPEC, so that we can test for AF_UNSPEC to test whether it was stored to.
read_sa_family ๐Ÿ”’ โš 
Read the sa_family field from a socket address returned from the OS.
read_sockaddr_netlink ๐Ÿ”’
read_sockaddr_unix ๐Ÿ”’
read_sockaddr_v4 ๐Ÿ”’
read_sockaddr_v6 ๐Ÿ”’
read_sockaddr_xdp ๐Ÿ”’
sockaddr_nonempty ๐Ÿ”’ โš 
Check if a socket address returned from the OS is considered non-empty.