Skip to main content

is_ipv4_reserved_broadcast_or_multicast

Function is_ipv4_reserved_broadcast_or_multicast 

Source
pub fn is_ipv4_reserved_broadcast_or_multicast(ip: Ipv4Addr) -> bool
Expand description

Returns true for 0.0.0.0/8 (“this network”, broader than the single unspecified address), IPv4 multicast (224.0.0.0/4), Class E reserved space (240.0.0.0/4, RFC 1112 §4 — Ipv4Addr::is_reserved covers this but is unstable, so the range check is inlined here), and the limited broadcast address 255.255.255.255.