Similar to a lot of the tools we have in `ipinfo tool`, wanting to add a few more we didn't do but could be useful: - `is_loopback` - basically checking for `127.0.0.1` or whatever IP ranges are classified as 'loopback' (see https://simple.wikipedia.org/wiki/Loopback) - `is_multicast` - see https://en.wikipedia.org/wiki/Multicast_address - `is_unspecified` - check for the v4 address `0.0.0.0` or v6 address `::` - `is_global_unicast` - https://pkg.go.dev/net/netip@go1.21.4#Addr.IsGlobalUnicast - `is_interface_local_multicast` - see https://pkg.go.dev/net/netip@go1.21.4#Addr.IsInterfaceLocalMulticast - `is_link_local_multicast` - https://pkg.go.dev/net/netip@go1.21.4#Addr.IsLinkLocalMulticast - `is_link_local_unicast` - https://pkg.go.dev/net/netip@go1.21.4#Addr.IsLinkLocalUnicast
Similar to a lot of the tools we have in
ipinfo tool, wanting to add a few more we didn't do but could be useful:is_loopback- basically checking for127.0.0.1or whatever IP ranges are classified as 'loopback' (see https://simple.wikipedia.org/wiki/Loopback)is_multicast- see https://en.wikipedia.org/wiki/Multicast_addressis_unspecified- check for the v4 address0.0.0.0or v6 address::is_global_unicast- https://pkg.go.dev/net/netip@go1.21.4#Addr.IsGlobalUnicastis_interface_local_multicast- see https://pkg.go.dev/net/netip@go1.21.4#Addr.IsInterfaceLocalMulticastis_link_local_multicast- https://pkg.go.dev/net/netip@go1.21.4#Addr.IsLinkLocalMulticastis_link_local_unicast- https://pkg.go.dev/net/netip@go1.21.4#Addr.IsLinkLocalUnicast