Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrBits ¶ added in v0.19.77
Return the length of a full prefix (no subnetting) for the given IP address. Returns 32 for ipv4 addresses, and 128 for ipv6 addresses.
func AllInterfaceAddrs ¶
Return all IP addresses that are currently in use on the local host.
This function differs from net.InterfaceAddrs() in that peer addresses for point-to-point interfaces are returned by this function, in addition to local interface addresses.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.