summaryrefslogtreecommitdiffstats
path: root/python-ethtool/ethtool.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-09-13 18:46:15 +0200
committerDavid Sommerseth <davids@redhat.com>2013-09-13 18:49:10 +0200
commit052d432d9be11a0b6b69826b540b03d1b80904a4 (patch)
tree32a44b8c6b40c62e3be372141796987b34328804 /python-ethtool/ethtool.c
parentabab733a87025960acee7dd0a2c029e679a502a8 (diff)
downloadpython-ethtool-052d432d9be11a0b6b69826b540b03d1b80904a4.tar.gz
python-ethtool-052d432d9be11a0b6b69826b540b03d1b80904a4.tar.xz
python-ethtool-052d432d9be11a0b6b69826b540b03d1b80904a4.zip
Re-implement the IPv6 support
This uses the same approach as IPv4 uses. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/ethtool.c')
-rw-r--r--python-ethtool/ethtool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index 4701308..e58d5f9 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -962,7 +962,9 @@ PyMODINIT_FUNC initethtool(void)
Py_INCREF(&ethtool_etherinfoType);
PyModule_AddObject(m, "etherinfo", (PyObject *)&ethtool_etherinfoType);
- // Prepare the ethtool IPv4 address types
+ // Prepare the ethtool IPv6 and IPv4 address types
+ if (PyType_Ready(&ethtool_netlink_ipv6_address_Type) < 0)
+ return;
if (PyType_Ready(&ethtool_netlink_ipv4_address_Type))
return;