Expand description
Redeclaration of macros to generate net_types
types.
Macrosยง
- ip
- Declares a [
net_types::ip::IpAddr
] from a parsable IP address (either V4 or V6) string. - ip_v4
- Declares a [
net_types::ip::Ipv4Addr
] from a parsable IPv4 address string. - ip_v6
- Declares a [
net_types::ip::Ipv6Addr
] from a parsable IPv6 address string. - mac
- Declares a [
net_types::ethernet::Mac
] from a parsable MAC address in the formaa:bb:cc:dd:ee:ff
. - prefix_
length_ v4 - Declares a [
net_types::ip::PrefixLength<Ipv4>
] from an integer literal. - prefix_
length_ v6 - Declares a [
net_types::ip::PrefixLength<Ipv6>
] from an integer literal. - subnet_
v4 - Declares a [
net_types::ip::Subnet<Ipv4Addr>
] from a parsable IPv4 CIDR address string. - subnet_
v6 - Declares a [
net_types::ip::Subnet<Ipv6Addr>
] from a parsable IPv6 CIDR address string.