Lines Matching refs:AddressFamily
1 use nix::sys::socket::{AddressFamily, InetAddr, UnixAddr, getsockname};
138 use nix::sys::socket::{socket, AddressFamily, SockType, SockFlag}; in test_getsockname()
143 let sock = socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None) in test_getsockname()
154 use nix::sys::socket::{socketpair, AddressFamily, SockType, SockFlag}; in test_socketpair()
156 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_socketpair()
202 let (fd2, fd1) = socketpair(AddressFamily::Unix, SockType::Stream, in stream()
215 let rsock = socket(AddressFamily::Inet, in udp()
222 AddressFamily::Inet, in udp()
231 assert_eq!(AddressFamily::Inet, from.unwrap().family()); in udp()
255 let rsock = socket(AddressFamily::Inet, in gso()
266 AddressFamily::Inet, in gso()
304 let rsock = socket(AddressFamily::Inet, in gro()
332 let rsock = socket(AddressFamily::Inet, in udp_sendmmsg()
339 AddressFamily::Inet, in udp_sendmmsg()
378 assert_eq!(AddressFamily::Inet, from.unwrap().family()); in udp_sendmmsg()
399 let rsock = socket(AddressFamily::Inet, in udp_recvmmsg()
406 AddressFamily::Inet, in udp_recvmmsg()
437 assert_eq!(AddressFamily::Inet, address.unwrap().family()); in udp_recvmmsg()
466 let rsock = socket(AddressFamily::Inet, in udp_recvmmsg_dontwait_short_read()
473 AddressFamily::Inet, in udp_recvmmsg_dontwait_short_read()
509 assert_eq!(AddressFamily::Inet, address.unwrap().family()); in udp_recvmmsg_dontwait_short_read()
542 AddressFamily, SockType, SockFlag, in test_scm_rights()
545 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_scm_rights()
598 AddressFamily, SockType, SockFlag, SockAddr, in test_af_alg_cipher()
618 let sock = socket(AddressFamily::Alg, SockType::SeqPacket, SockFlag::empty(), None) in test_af_alg_cipher()
667 AddressFamily, SockType, SockFlag, SockAddr, in test_af_alg_aead()
700 let sock = socket(AddressFamily::Alg, SockType::SeqPacket, SockFlag::empty(), None) in test_af_alg_aead()
762 AddressFamily, SockType, SockFlag, SockAddr, in test_sendmsg_ipv4packetinfo()
765 let sock = socket(AddressFamily::Inet, in test_sendmsg_ipv4packetinfo()
814 AddressFamily, SockType, SockFlag, SockAddr, in test_sendmsg_ipv6packetinfo()
817 let sock = socket(AddressFamily::Inet6, in test_sendmsg_ipv6packetinfo()
912 AddressFamily, SockType, SockFlag, MsgFlags}; in test_sendmsg_empty_cmsgs()
914 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_sendmsg_empty_cmsgs()
949 AddressFamily, SockType, SockFlag, in test_scm_credentials()
955 let (send, recv) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_scm_credentials()
1036 let (send, recv) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_impl_scm_credentials_and_rights()
1111 let s1 = socket(AddressFamily::Unix, SockType::Stream, in test_unixdomain()
1118 let s2 = socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None) in test_unixdomain()
1144 let fd = socket(AddressFamily::System, SockType::Datagram, in test_syscontrol()
1163 fn loopback_address(family: AddressFamily) -> Option<nix::ifaddrs::InterfaceAddress> { in loopback_address()
1185 AddressFamily::Inet => return Some(ifaddr), in loopback_address()
1191 AddressFamily::Inet6 => return Some(ifaddr), in loopback_address()
1225 let lo_ifaddr = loopback_address(AddressFamily::Inet); in test_recv_ipv4pktinfo()
1232 AddressFamily::Inet, in test_recv_ipv4pktinfo()
1246 AddressFamily::Inet, in test_recv_ipv4pktinfo()
1315 let lo_ifaddr = loopback_address(AddressFamily::Inet); in test_recvif()
1322 AddressFamily::Inet, in test_recvif()
1337 AddressFamily::Inet, in test_recvif()
1426 let lo_ifaddr = loopback_address(AddressFamily::Inet6); in test_recv_ipv6pktinfo()
1433 AddressFamily::Inet6, in test_recv_ipv6pktinfo()
1447 AddressFamily::Inet6, in test_recv_ipv6pktinfo()
1499 use nix::sys::socket::{AddressFamily, socket, bind, connect, listen, in test_vsock()
1506 let s1 = socket(AddressFamily::Vsock, SockType::Stream, in test_vsock()
1528 let s2 = socket(AddressFamily::Vsock, SockType::Stream, in test_vsock()