Lines Matching refs:Ipv4Addr
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()
422 pub fn from_std(std: &net::Ipv4Addr) -> Ipv4Addr { in from_std() argument
424 Ipv4Addr::new(bits[0], bits[1], bits[2], bits[3]) in from_std()
427 pub fn any() -> Ipv4Addr { in any()
428 Ipv4Addr(libc::in_addr { s_addr: libc::INADDR_ANY }) in any()
436 pub fn to_std(self) -> net::Ipv4Addr { in to_std() argument
438 net::Ipv4Addr::new(bits[0], bits[1], bits[2], bits[3]) in to_std()
442 impl fmt::Display for Ipv4Addr { implementation