:exc:`socket.error` will be raised. Note that exactly what is valid depends on
the underlying C implementation of :cfunc:`inet_aton`.
- :func:`inet_aton` does not support IPv6, and :func:`getnameinfo` should be used
+ :func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used
instead for IPv4/v6 dual stack support.
If the byte sequence passed to this function is not exactly 4 bytes in
length, :exc:`socket.error` will be raised. :func:`inet_ntoa` does not
- support IPv6, and :func:`getnameinfo` should be used instead for IPv4/v6 dual
+ support IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual
stack support.
Availability: Unix (maybe not all platforms).
+ .. seealso::
+
+ :func:`ipaddr.BaseIP.packed`
+ Platform-independent conversion to a packed, binary format.
+
.. function:: inet_ntop(address_family, packed_ip)