module documentation
POSIX implementation of local network interface enumeration.
Class | ifaddrs |
Undocumented |
Class | in6 |
Undocumented |
Class | in |
Undocumented |
Class | sockaddr |
Undocumented |
Class | sockaddr |
Undocumented |
Class | sockaddr |
Undocumented |
Function | posix |
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 |
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 | _maybe |
On FreeBSD, kill the embedded interface indices in link-local scoped addresses. |
Variable | _sockaddr |
Undocumented |
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).
Call getifaddrs(3) and return a list of tuples of interface name, address family, and human-readable address representing its results.
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:bytes | The packed representation of the address (ie, the bytes of a in_addr field). |
Returns | |
bytes | The 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. |