pub fn ipv4addr_to_u32(addr: &Ipv4Addr) -> u32 {
    let octets  = addr.octets();
    let nr: u32 = unsafe { mem::transmute(octets) };
    nr.to_be()
}
/// Convert a given IPv4 address into big endian 32-bit unsigned number.
Convert a given IPv4 address into big endian 32-bit unsigned number.
Convert a given IPv4 address into big endian 32 - bit unsigned number .
pub fn ipv4addr_to_u32(addr: &Ipv4Addr) -> u32 {
    let octets  = addr.octets();
    let nr: u32 = unsafe { mem::transmute(octets) };
    nr.to_be()
}
pub fn ipv4addr_to_u32 ( addr : & Ipv4Addr ) -> u32 { let octets = addr . octets ( ) ; let nr : u32 = unsafe { mem :: transmute ( octets ) } ; nr . to_be ( ) }
Convert a given IPv4 address into big endian 32-bit unsigned number.
Convert a given IPv4 address into big endian 32 - bit unsigned number .
addr
&Ipv4Addr
addr
&Ipv4Addr