package
0.62.0
Repository: https://github.com/containers/common.git
Documentation: pkg.go.dev

# Functions

Cmp compares two IPs, returning the usual ordering: a < b : -1 a == b : 0 a > b : 1.
FirstIPInSubnet gets the first IP in a subnet.
No description provided by the author
No description provided by the author
GetLocalIP returns the first non loopback local IPv4 of the host.
GetLocalIPExcluding returns the first non loopback local IPv4 of the host.
IsIPv4 returns true if netIP is IPv4.
IsIPv6 returns true if netIP is IPv6.
LastIPInSubnet gets the last IP in a subnet.
NextIP returns IP incremented by 1.
NormalizeIP will transform the given ip to the 4 byte len ipv4 if possible.
PrevIP returns IP decremented by 1.