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 toAF_UNSPEC
, so that we can test forAF_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.