POSIX implementation of local network interface enumeration.
Function | chr | Python 3 implementation of Python 2 chr(), i.e. convert an integer to corresponding byte. |
Class | in_addr | Undocumented |
Class | in6_addr | Undocumented |
Class | sockaddr | Undocumented |
Class | sockaddr_in | Undocumented |
Class | sockaddr_in6 | Undocumented |
Class | ifaddrs | 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). |
Function | _maybeCleanupScopeIndex | On FreeBSD, kill the embedded interface indices in link-local scoped addresses. |
Function | _interfaces | Call getifaddrs(3) and return a list of tuples of interface
name, address family, and human-readable address representing its
results. |
Python 3 implementation of Python 2 chr(), i.e. convert an integer to corresponding byte.
On FreeBSD, kill the embedded interface indices in link-local scoped addresses.
Parameters | family | The address family of the packed address - one of the socket.AF_* constants. |
packed | The packed representation of the address (ie, the bytes of a in_addr
field). (type: bytes ) | |
Returns | The packed address with any FreeBSD-specific extra bits cleared. (type: bytes ) | |
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. |