A crate for parsing, representing, and manipulating network addresses.
netaddr2 arose from a need to mask and subnet IP space logically similar
to the way that routers and network interface cards (NICs) do. This enables
the user to ask questions like:
IpAddrbelong to this
NetAddr? (That is, does this specific address happen to lie within the network/netmask given by this
Does this network contain this other network?
The API is strikingly similar to that of the
and users who have used that set of structs will hopefully find this API
quite naturally similar.
A structure representing an IPv4 network.
A structure representing an IPv6 network.
The error type for operations relating to the
A structure representing an IP network.
Compute the "broadcast" address for supported networks.
Check containment of one object within another
Masking one object with another
Merge two items together
A type definition with