Home
last modified time | relevance | path

Searched refs:Ipv4Addr (Results 1 – 22 of 22) sorted by relevance

/external/crosvm/net_util/src/
Dlib.rs63 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/
Dnot-repeatable.rs3 struct Ipv4Addr; struct
6 let ip = Ipv4Addr; in main()
Dnot-quotable.rs2 use std::net::Ipv4Addr;
5 let ip = Ipv4Addr::LOCALHOST; in main()
/external/rust/crates/mio/src/net/
Dudp.rs16 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/
Daddr.rs266 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 …]
Dmod.rs28 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/
Dnet_lookup_host.rs5 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/
Dnet.rs6 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/
Dhost.rs11 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/
Daddr.rs4 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>() {
Dudp.rs7 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/
Dser.rs189 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()
Dde.rs724 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/
Dnet.rs3 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/
Dunit.rs13 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/
Dcrosvm.rs217 pub host_ip: Option<net::Ipv4Addr>,
218 pub netmask: Option<net::Ipv4Addr>,
Dlinux.rs16 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/
Dtcp.rs4 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/
Dnet.rs8 use std::net::Ipv4Addr;
442 ip_addr: Ipv4Addr, in new() argument
443 netmask: Ipv4Addr, in new() argument
/external/rust/crates/serde/src/ser/
Dimpls.rs724 impl Serialize for net::Ipv4Addr { implementation
/external/rust/crates/nix/
DCHANGELOG.md274 - `Ipv4Addr::octets`, `Ipv4Addr::to_std`, `Error::as_errno`,
/external/rust/crates/serde/src/de/
Dimpls.rs1463 parse_ip_impl!("IPv4 address" net::Ipv4Addr; 4);