/third_party/rust/crates/rustix/src/net/ |
D | ip.rs | 44 V6(#[cfg_attr(staged_api, stable(feature = "ip_addr", since = "1.7.0"))] Ipv6Addr), 162 pub struct Ipv6Addr { struct 970 pub const fn to_ipv6_compatible(&self) -> Ipv6Addr { in to_ipv6_compatible() argument 972 Ipv6Addr { in to_ipv6_compatible() 1000 pub const fn to_ipv6_mapped(&self) -> Ipv6Addr { in to_ipv6_mapped() argument 1002 Ipv6Addr { in to_ipv6_mapped() 1031 impl From<Ipv6Addr> for IpAddr { 1047 fn from(ipv6: Ipv6Addr) -> IpAddr { in from() 1186 impl Ipv6Addr { implementation 1205 pub const fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16) -> Ipv6Addr { in new() argument [all …]
|
D | addr.rs | 12 use crate::net::ip::{IpAddr, Ipv4Addr, Ipv6Addr}; 110 ip: Ipv6Addr, 398 pub const fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> SocketAddrV6 { in new() argument 423 pub const fn ip(&self) -> &Ipv6Addr { in ip() argument 439 pub fn set_ip(&mut self, new_ip: Ipv6Addr) { in set_ip() argument
|
D | mod.rs | 36 pub use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 42 ip::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope},
|
D | sockopt.rs | 9 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; 541 multiaddr: &Ipv6Addr, in set_ipv6_add_membership() argument 596 multiaddr: &Ipv6Addr, in set_ipv6_drop_membership() argument
|
/third_party/rust/crates/rustix/tests/net/ |
D | v6.rs | 8 accept, bind_v6, connect_v6, getsockname, listen, recv, send, socket, AddressFamily, Ipv6Addr, 24 let name = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 0, 0, 0); in server() 59 let addr = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), port, 0, 0); in client()
|
D | poll.rs | 7 accept, bind_v6, connect_v6, getsockname, listen, recv, send, socket, AddressFamily, Ipv6Addr, 23 let name = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), 0, 0, 0); in server() 71 let addr = SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), port, 0, 0); in client()
|
D | connect_bind_send.rs | 2 AddressFamily, Ipv6Addr, Protocol, RecvFlags, SendFlags, SocketAddrAny, SocketAddrV4, 42 let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST); in net_v6_connect_any() 117 let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST); in net_v6_connect() 192 let localhost = Ipv6Addr::LOCALHOST; in net_v6_bind_any() 269 let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST); in net_v6_sendto() 349 let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST); in net_v6_sendto_any() 438 let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST); in net_v6_acceptfrom()
|
D | addr.rs | 6 Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrStorage, SocketAddrV4, SocketAddrV6, in encode_decode() 16 let orig = SocketAddrV6::new(Ipv6Addr::new(2, 3, 5, 6, 8, 9, 11, 12), 33, 34, 36); in encode_decode()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | read_sockaddr.rs | 7 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrUnix, SocketAddrV4, SocketAddrV6}; 78 Ipv6Addr::from(decode.sin6_addr.in6_u.u6_addr8), in read_sockaddr() 146 Ipv6Addr::from(decode.sin6_addr.in6_u.u6_addr8), in read_sockaddr_os()
|
D | syscalls.rs | 755 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; 1165 multiaddr: &Ipv6Addr, in set_ipv6_add_membership() argument 1185 multiaddr: &Ipv6Addr, in set_ipv6_drop_membership() argument 1218 fn to_ipv6mr(multiaddr: &Ipv6Addr, interface: u32) -> c::ipv6_mreq { in to_ipv6mr() argument 1226 fn to_ipv6mr_multiaddr(multiaddr: &Ipv6Addr) -> c::in6_addr { in to_ipv6mr_multiaddr()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | read_sockaddr.rs | 8 use crate::net::{Ipv4Addr, Ipv6Addr, SocketAddrAny, SocketAddrV4, SocketAddrV6}; 129 Ipv6Addr::from(s6_addr), in read_sockaddr() 222 Ipv6Addr::from(in6_addr_s6_addr(decode.sin6_addr)), in inner_read_sockaddr_os()
|
D | syscalls.rs | 397 use crate::net::{Ipv4Addr, Ipv6Addr, SocketType}; 736 multiaddr: &Ipv6Addr, in set_ipv6_add_membership() argument 783 multiaddr: &Ipv6Addr, in set_ipv6_drop_membership() argument 841 fn to_ipv6mr(multiaddr: &Ipv6Addr, interface: u32) -> c::ipv6_mreq { in to_ipv6mr() argument 849 fn to_ipv6mr_multiaddr(multiaddr: &Ipv6Addr) -> c::in6_addr { in to_ipv6mr_multiaddr()
|
/third_party/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 54 pub(crate) const fn ipv6addr_to_libc(addr: &net::Ipv6Addr) -> libc::in6_addr { in ipv6addr_to_libc() 55 static_assertions::assert_eq_size!(net::Ipv6Addr, libc::in6_addr); in ipv6addr_to_libc() 485 sin6_addr: Ipv6Addr::from_std(addr.ip()).0, 519 InetAddr::V6(ref sa) => IpAddr::V6(Ipv6Addr(sa.sin6_addr)), 539 Ipv6Addr(sa.sin6_addr).to_std(), 576 V6(Ipv6Addr), 595 IpAddr::V6(Ipv6Addr::new(a, b, c, d, e, f, g, h)) 601 net::IpAddr::V6(ref std) => IpAddr::V6(Ipv6Addr::from_std(std)), 694 pub struct Ipv6Addr(pub libc::in6_addr); 714 impl Ipv6Addr { impl [all …]
|
D | mod.rs | 49 InetAddr, IpAddr, Ipv4Addr, Ipv6Addr, LinkAddr, SockaddrIn, SockaddrIn6, 59 InetAddr, IpAddr, Ipv4Addr, Ipv6Addr, SockaddrIn, SockaddrIn6, 549 pub const fn new(group: net::Ipv6Addr) -> Self {
|
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_ser.rs | 666 &"::1".parse::<net::Ipv6Addr>().unwrap().readable(), in test_net_ipv6addr_readable() 719 &net::Ipv6Addr::from(*b"1234567890123456").compact(), in test_net_ipv6addr_compact() 773 &net::SocketAddrV6::new(net::Ipv6Addr::from(*b"1234567890123456"), 1234, 0, 0).compact(), in test_net_socketaddr_compact()
|
D | test_de.rs | 2047 "::1".parse::<net::Ipv6Addr>().unwrap().readable(), in test_net_ipv6addr_readable() 2100 net::Ipv6Addr::from(*b"1234567890123456").compact(), in test_net_ipv6addr_compact() 2169 net::SocketAddrV6::new(net::Ipv6Addr::from(*b"1234567890123456"), 1234, 0, 0).compact(), in test_net_socketaddr_compact()
|
/third_party/rust/crates/nix/test/sys/ |
D | test_socket.rs | 12 use std::net::{self, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 139 let ip: Ipv6Addr = "fe80::1".parse().unwrap(); in test_inetv6_addr_roundtrip_sockaddr_storage_to_addr() 706 let addr = std::net::Ipv6Addr::from_str("::1").unwrap(); in udp_inet6() 2489 std::net::Ipv6Addr::LOCALHOST.octets() in test_recverr_v6()
|
/third_party/rust/crates/serde/serde/src/ser/ |
D | impls.rs | 747 impl Serialize for net::Ipv6Addr { implementation
|
/third_party/rust/crates/serde/serde/src/de/ |
D | impls.rs | 1576 parse_ip_impl!("IPv6 address" net::Ipv6Addr; 16);
|
/third_party/rust/crates/nix/ |
D | CHANGELOG.md | 248 - Deprecated `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` in favor of their equivalents
|