Closed nvandamme closed 6 months ago
add CIDR notation prefix length as public field prefixlen in IfAddr::V4 and IfAddr::V6 structs
prefixlen
IfAddr::V4
IfAddr::V6
Interface { name: "Loopback Pseudo-Interface 1", addr: V6( Ifv6Addr { ip: ::1, netmask: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, prefixlen: 128, broadcast: None, }, ), index: Some( 1, ), adapter_name: "...", }, Interface { name: "Loopback Pseudo-Interface 1", addr: V4( Ifv4Addr { ip: 127.0.0.1, netmask: 255.0.0.0, prefixlen: 8, broadcast: Some( 127.255.255.255, ), }, ), index: Some( 1, ), adapter_name: "....", },
add CIDR notation prefix length as public field
prefixlen
inIfAddr::V4
andIfAddr::V6
structs