module documentation

POSIX implementation of local network interface enumeration.

Class ifaddrs Undocumented
Class in6_addr Undocumented
Class in_addr Undocumented
Class sockaddr Undocumented
Class sockaddr_in Undocumented
Class sockaddr_in6 Undocumented
Function posixGetLinkLocalIPv6Addresses Return a list of strings in colon-hex format representing all the link local IPv6 addresses available on the system, as reported by getifaddrs(3).
Variable ifaddrs_p Undocumented
Variable libc Undocumented
Function _interfaces Call getifaddrs(3) and return a list of tuples of interface name, address family, and human-readable address representing its results.
Function _maybeCleanupScopeIndex On FreeBSD, kill the embedded interface indices in link-local scoped addresses.
Variable _sockaddrCommon Undocumented
def posixGetLinkLocalIPv6Addresses(): (source)

Return a list of strings in colon-hex format representing all the link local IPv6 addresses available on the system, as reported by getifaddrs(3).

ifaddrs_p = (source)

Undocumented

Undocumented

def _interfaces(): (source)

Call getifaddrs(3) and return a list of tuples of interface name, address family, and human-readable address representing its results.

def _maybeCleanupScopeIndex(family, packed): (source)

On FreeBSD, kill the embedded interface indices in link-local scoped addresses.

Parameters
familyThe address family of the packed address - one of the socket.AF_* constants.
packed:bytesThe packed representation of the address (ie, the bytes of a in_addr field).
Returns
bytesThe packed address with any FreeBSD-specific extra bits cleared.
See Also
https://twistedmatrix.com/trac/ticket/6843
http://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html#ipv6-scope-index
Note
Indications are that the need for this will be gone in FreeBSD >=10.
_sockaddrCommon: List[Tuple[str, Any]] = (source)

Undocumented