pub fn ip_calc(query: &str) -> StringExpand description
IPv4/IPv6 address inspector and CIDR subnet calculator — offline, instant.
Commands:
<ip> — classify: class, private/public, loopback, etc.
<ip>/<prefix> — CIDR subnet info: network, broadcast, mask, range, host count
contains <cidr> <ip> — test if IP is inside a subnet
range <ip1> <ip2> — count IPs in range, suggest CIDR
mask <mask> — convert dotted-decimal mask to prefix length and back