Struct linux_unsafe::sockaddr_storage
source · #[repr(C, align(8))]pub struct sockaddr_storage {
pub family: sa_family_t,
pub data: [u8; 126],
}
Expand description
Represents the upper limit for the size of any sockaddr
value, across
all address families.
This is a reasonable default type to use when retrieving a socket address
from the kernel without knowledge of its address family. It is guaranteed
at least as large as the largest address type the kernel can return.
After the value is populated, use family
to convert to a more specific
address type.
Fields§
§family: sa_family_t
§data: [u8; 126]