1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// Allow while hacking #![allow(dead_code)] // TODO: // // o Explore the possibility of using Rust's Range types to represent // IP networks. A lot of the Range traits are not yet marked stable // though, so it would be experimental. // pub use self::emu128::*; pub use self::ipext::{ipv6_addr_from_emu128, ipv6_addr_into_emu128, IpAdd, IpSub, IpBitAnd, IpBitOr}; pub use self::ipnet::{IpNet, Ipv4Net, Ipv6Net, aggregate_ipv4_networks, aggregate_ipv6_networks}; pub use self::parser::AddrParseError; mod emu128; mod ipext; mod ipnet; // Not sure if there is a way to reuse and extend std::net::parser // because it's private. So it's reimplemented in parser.rs to add // parsing for network types. mod parser; mod saturating_shifts;