package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

GenerateIfaceName returns an interface name using the passed in prefix and the length of random bytes.
GenerateMACFromIP returns a locally administered MAC address where the 4 least significant bytes are derived from the IPv4 address.
GenerateRandomMAC returns a new 6-byte(48-bit) hardware address (MAC) that is not multicast and has the local assignment bit set.
GenerateRandomName returns a string of the specified length, created by joining the prefix to random hex characters.
InferReservedNetworks returns a list of network prefixes that seem to be used by the system and that would likely break it if they were assigned to some Docker networks.
IsV6Listenable returns true when `[::1]:0` is listenable.
MustParseMAC returns a net.HardwareAddr or panic.
ReverseIP accepts a V4 or V6 IP string in the canonical form and returns a reversed IP in the dotted decimal form .