Lines Matching refs:AddressFamily
14 net::socket::{AddressFamily, SOL_SOCKET},
44 let address_family = AddressFamily::try_from(address_family as u16)?; in do_socket()
49 AddressFamily::Unix | AddressFamily::INet => match socket_type { in do_socket()
689 match AddressFamily::try_from(addr.family)? { in to_endpoint()
690 AddressFamily::INet => { in to_endpoint()
700 AddressFamily::Packet => { in to_endpoint()
704 AddressFamily::Netlink => { in to_endpoint()
708 AddressFamily::Unix => { in to_endpoint()
720 let ret = match AddressFamily::try_from(unsafe { self.family })? { in len()
721 AddressFamily::INet => Ok(core::mem::size_of::<SockAddrIn>()), in len()
722 AddressFamily::Packet => Ok(core::mem::size_of::<SockAddrLl>()), in len()
723 AddressFamily::Netlink => Ok(core::mem::size_of::<SockAddrNl>()), in len()
724 AddressFamily::Unix => Err(SystemError::EINVAL), in len()
776 family: AddressFamily::Unspecified as u16, in from()
786 sin_family: AddressFamily::INet as u16, in from()
802 sll_family: AddressFamily::Packet as u16, in from()