Function initialize_family_to_unspec

Source
pub(crate) unsafe fn initialize_family_to_unspec(storage: *mut sockaddr)
Expand description

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.

ยงSafety

storage must point to a least an initialized sockaddr_header.