Home
last modified time | relevance | path

Searched refs:AddressFamily (Results 1 – 23 of 23) sorted by relevance

/external/rust/crates/nix/src/sys/socket/
Daddr.rs34 pub enum AddressFamily { enum
222 impl AddressFamily { implementation
228 pub fn from_i32(family: i32) -> Option<AddressFamily> { in from_i32() argument
230 libc::AF_UNIX => Some(AddressFamily::Unix), in from_i32()
231 libc::AF_INET => Some(AddressFamily::Inet), in from_i32()
232 libc::AF_INET6 => Some(AddressFamily::Inet6), in from_i32()
234 libc::AF_NETLINK => Some(AddressFamily::Netlink), in from_i32()
236 libc::AF_SYSTEM => Some(AddressFamily::System), in from_i32()
238 libc::AF_PACKET => Some(AddressFamily::Packet), in from_i32()
245 libc::AF_LINK => Some(AddressFamily::Link), in from_i32()
[all …]
Dsockopt.rs648 … let (a, b) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap(); in can_get_peercred_on_unix_socket()
660 … let (a, b) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap(); in is_socket_type_unix()
672 let s = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), None).unwrap(); in is_socket_type_dgram()
686 let s = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in can_get_listen_on_tcp_socket()
Dmod.rs23 AddressFamily,
1410 pub fn socket<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType, flags: SockFlag, … in socket() argument
1430 pub fn socketpair<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType, protocol: T, in socketpair() argument
/external/rust/crates/nix/test/sys/
Dtest_socket.rs1 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()
[all …]
Dtest_sockopt.rs2 use nix::sys::socket::{socket, sockopt, getsockopt, setsockopt, AddressFamily, SockType, SockFlag, …
13 let s = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in is_so_mark_functional()
21 let fd = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), SockProtocol::Udp) in test_so_buf()
44 let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in test_tcp_congestion()
62 let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in test_bindtodevice()
75 …let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), SockProtocol::Tcp).unwra… in test_so_tcp_keepalive()
/external/libnl/python/doc/
Dcore.rst137 done with a string or a :py:class:`AddressFamily` object.
139 :rtype: :py:class:`AddressFamily`
148 AddressFamily chapter
151 .. py:class:: AddressFamily
155 af = netlink.AddressFamily('inet6')
162 print repr(af) # => AddressFamily('inet6')
/external/libnl/python/netlink/route/
Daddress.py177 return netlink.AddressFamily(fam)
181 if not isinstance(value, netlink.AddressFamily):
182 value = netlink.AddressFamily(value)
/external/libnl/python/netlink/
Dcore.py623 class AddressFamily(object): class
757 return AddressFamily(f)
764 if not isinstance(value, AddressFamily):
765 value = AddressFamily(value)
/external/openssh/
Dssh_config29 # AddressFamily any
Dsshd_config14 #AddressFamily any
/external/webrtc/logging/rtc_event_log/
Drtc_event_log.proto359 enum AddressFamily { enum
390 optional AddressFamily local_address_family = 6;
396 optional AddressFamily remote_address_family = 8;
Drtc_event_log2.proto567 enum AddressFamily { enum
601 optional AddressFamily local_address_family = 7;
607 optional AddressFamily remote_address_family = 9;
Drtc_event_log_parser.h246 rtclog2::IceCandidatePairConfig::AddressFamily address_family); in RTC_POP_IGNORING_WUNDEF()
Drtc_event_log_parser.cc247 rtclog::IceCandidatePairConfig::AddressFamily address_family) { in GetRuntimeIceCandidatePairAddressFamily()
865 rtclog2::IceCandidatePairConfig::AddressFamily address_family) { in GetRuntimeIceCandidatePairAddressFamily()
/external/rust/crates/tokio/tests/
Dio_async_fd.rs139 use nix::sys::socket::{self, AddressFamily, SockFlag, SockType}; in socketpair()
142 AddressFamily::Unix, in socketpair()
/external/python/cpython3/Lib/
Dsocket.py517 return _intenum_converter(super().family, AddressFamily)
955 addrlist.append((_intenum_converter(af, AddressFamily),
/external/openssh/regress/
Dtest-exec.sh445 AddressFamily inet
/external/scapy/test/
Dmock_windows.uts58 # 'Get-NetRoute -AddressFamily IPV6 | select ifIndex, DestinationPrefix, NextHop'
/external/webrtc/logging/rtc_event_log/encoder/
Drtc_event_log_encoder_legacy.cc173 rtclog::IceCandidatePairConfig::AddressFamily
Drtc_event_log_encoder_new_format.cc213 rtclog2::IceCandidatePairConfig::AddressFamily ConvertToProtoFormat( in ConvertToProtoFormat()
/external/rust/crates/nix/
DCHANGELOG.md306 - Added `AF_VSOCK` to `AddressFamily`.
468 - Added `AF_UNSPEC` wrapper to `AddressFamily` ([#948](https://github.com/nix-rust/nix/pull/948))
584 - Added protocol families in `AddressFamily` enum.
/external/python/cpython3/Doc/library/
Dsocket.rst299 The AF_* and SOCK_* constants are now :class:`AddressFamily` and
780 [(<AddressFamily.AF_INET6: 10>, <SocketType.SOCK_STREAM: 1>,
782 (<AddressFamily.AF_INET: 2>, <SocketType.SOCK_STREAM: 1>,
/external/python/cpython3/Lib/test/
Dtest_socket.py1823 unknown_family = max(socket.AddressFamily.__members__.values()) + 1