/external/crosvm/net_util/src/ |
D | lib.rs | 63 fn create_sockaddr(ip_addr: net::Ipv4Addr) -> net_sys::sockaddr { in create_sockaddr() 77 fn read_ipv4_addr(addr: &net_sys::sockaddr) -> net::Ipv4Addr { in read_ipv4_addr() argument 82 net::Ipv4Addr::from(in_addr.sin_addr.s_addr) in read_ipv4_addr() 244 fn ip_addr(&self) -> Result<net::Ipv4Addr>; in ip_addr() argument 247 fn set_ip_addr(&self, ip_addr: net::Ipv4Addr) -> Result<()>; in set_ip_addr() 250 fn netmask(&self) -> Result<net::Ipv4Addr>; in netmask() argument 253 fn set_netmask(&self, netmask: net::Ipv4Addr) -> Result<()>; in set_netmask() 324 fn ip_addr(&self) -> Result<net::Ipv4Addr> { in ip_addr() argument 342 fn set_ip_addr(&self, ip_addr: net::Ipv4Addr) -> Result<()> { in set_ip_addr() 359 fn netmask(&self) -> Result<net::Ipv4Addr> { in netmask() argument [all …]
|
/external/rust/crates/quote/tests/ui/ |
D | not-repeatable.rs | 3 struct Ipv4Addr; struct 6 let ip = Ipv4Addr; in main()
|
D | not-quotable.rs | 2 use std::net::Ipv4Addr; 5 let ip = Ipv4Addr::LOCALHOST; in main()
|
/external/rust/crates/mio/src/net/ |
D | udp.rs | 16 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr}; 478 pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> { in join_multicast_v4() argument 499 pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> { in leave_multicast_v4() argument
|
/external/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 266 sin_addr: Ipv4Addr::from_std(addr.ip()).0, in from_std() 306 InetAddr::V4(ref sa) => IpAddr::V4(Ipv4Addr(sa.sin_addr)), in ip() 323 Ipv4Addr(sa.sin_addr).to_std(), in to_std() 355 V4(Ipv4Addr), 364 IpAddr::V4(Ipv4Addr::new(a, b, c, d)) in new_v4() 378 net::IpAddr::V4(ref std) => IpAddr::V4(Ipv4Addr::from_std(std)), in from_std() 407 pub struct Ipv4Addr(pub libc::in_addr); struct 409 impl Ipv4Addr { impl 411 pub fn new(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr { in new() argument 417 Ipv4Addr(libc::in_addr { s_addr: ip }) in new() [all …]
|
D | mod.rs | 28 Ipv4Addr, 353 pub fn new(group: Ipv4Addr, interface: Option<Ipv4Addr>) -> Self { in new() argument 356 imr_interface: interface.unwrap_or_else(Ipv4Addr::any).0, in new()
|
/external/rust/crates/tokio/tests/ |
D | net_lookup_host.rs | 5 use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr}; 29 SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 3000) in resolve_dns()
|
/external/crosvm/devices/src/virtio/vhost/ |
D | net.rs | 6 use std::net::Ipv4Addr; 50 ip_addr: Ipv4Addr, in new() argument 51 netmask: Ipv4Addr, in new() argument 376 Ipv4Addr::new(127, 0, 0, 1), in create_net_common() 377 Ipv4Addr::new(255, 255, 255, 0), in create_net_common()
|
/external/rust/crates/url/src/ |
D | host.rs | 11 use std::net::{Ipv4Addr, Ipv6Addr}; 24 Ipv4(Ipv4Addr), 52 Ipv4(Ipv4Addr), 291 fn parse_ipv4addr(input: &str) -> ParseResult<Option<Ipv4Addr>> { in parse_ipv4addr() argument 328 Ok(Some(Ipv4Addr::from(ipv4))) in parse_ipv4addr()
|
/external/rust/crates/tokio/src/net/ |
D | addr.rs | 4 use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 105 impl ToSocketAddrs for (Ipv4Addr, u16) {} 107 impl sealed::ToSocketAddrsPriv for (Ipv4Addr, u16) { 189 if let Ok(addr) = host.parse::<Ipv4Addr>() {
|
D | udp.rs | 7 use std::net::{self, Ipv4Addr, Ipv6Addr, SocketAddr}; 1342 pub fn join_multicast_v4(&self, multiaddr: Ipv4Addr, interface: Ipv4Addr) -> io::Result<()> { in join_multicast_v4() argument 1360 pub fn leave_multicast_v4(&self, multiaddr: Ipv4Addr, interface: Ipv4Addr) -> io::Result<()> { in leave_multicast_v4() argument
|
/external/rust/crates/serde_cbor/tests/ |
D | ser.rs | 189 use std::net::Ipv4Addr; in test_ip_addr() 191 let addr = Ipv4Addr::new(8, 8, 8, 8); in test_ip_addr() 195 let test_addr: Ipv4Addr = from_slice(&vec).unwrap(); in test_ip_addr()
|
D | de.rs | 724 use std::net::{IpAddr, Ipv4Addr}; 727 let ip = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)); in test_ipaddr_deserialization()
|
/external/rust/crates/mio/src/sys/unix/ |
D | net.rs | 3 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 151 let ip = Ipv4Addr::from(addr.sin_addr.s_addr.to_ne_bytes()); in to_socket_addr()
|
/external/rust/crates/url/tests/ |
D | unit.rs | 13 use std::net::{Ipv4Addr, Ipv6Addr}; 251 Host::Ipv4(Ipv4Addr::new(1, 35, 33, 49)), in host() 270 Host::Ipv4(Ipv4Addr::new(1, 35, 33, 49)), in host() 272 assert_host("http://0x1232131", Host::Ipv4(Ipv4Addr::new(1, 35, 33, 49))); in host() 273 assert_host("http://111", Host::Ipv4(Ipv4Addr::new(0, 0, 0, 111))); in host() 736 assert_eq!(url.host(), Some(Host::Ipv4(Ipv4Addr::new(192, 168, 0, 1)))); in test_windows_unc_path()
|
/external/crosvm/src/ |
D | crosvm.rs | 217 pub host_ip: Option<net::Ipv4Addr>, 218 pub netmask: Option<net::Ipv4Addr>,
|
D | linux.rs | 16 use std::net::Ipv4Addr; 798 host_ip: Ipv4Addr, in create_net_device() argument 799 netmask: Ipv4Addr, in create_net_device() argument
|
/external/rust/crates/mio/src/sys/windows/ |
D | tcp.rs | 4 use std::net::{self, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6}; 128 … let ip = Ipv4Addr::from([ip_bytes.s_b1, ip_bytes.s_b2, ip_bytes.s_b3, ip_bytes.s_b4]); in get_localaddr()
|
/external/crosvm/devices/src/virtio/ |
D | net.rs | 8 use std::net::Ipv4Addr; 442 ip_addr: Ipv4Addr, in new() argument 443 netmask: Ipv4Addr, in new() argument
|
/external/rust/crates/serde/src/ser/ |
D | impls.rs | 724 impl Serialize for net::Ipv4Addr { implementation
|
/external/rust/crates/nix/ |
D | CHANGELOG.md | 274 - `Ipv4Addr::octets`, `Ipv4Addr::to_std`, `Error::as_errno`,
|
/external/rust/crates/serde/src/de/ |
D | impls.rs | 1463 parse_ip_impl!("IPv4 address" net::Ipv4Addr; 4);
|