summaryrefslogtreecommitdiffstats
path: root/python-ethtool/ethtool.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-09-13 18:16:26 +0200
committerDavid Sommerseth <davids@redhat.com>2013-09-13 18:16:26 +0200
commitabab733a87025960acee7dd0a2c029e679a502a8 (patch)
tree808fe27aeb663035ad5249c37c63a6d97969b65b /python-ethtool/ethtool.c
parentd9922c0cf642da50794c3d23b61dcdd49684af8e (diff)
downloadpython-ethtool-abab733a87025960acee7dd0a2c029e679a502a8.tar.gz
python-ethtool-abab733a87025960acee7dd0a2c029e679a502a8.tar.xz
python-ethtool-abab733a87025960acee7dd0a2c029e679a502a8.zip
Rip out the old IPv6 implementation completely
The whole IPv6 support will be re-implemented using a simliar strategy as the newer IPv4 support uses. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/ethtool.c')
-rw-r--r--python-ethtool/ethtool.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index 8f64be7..4701308 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -35,7 +35,6 @@
static struct nl_sock *nlconnection = NULL;
unsigned int nlconnection_users = 0; /* How many NETLINK users are active? */
extern PyTypeObject ethtool_etherinfoType;
-extern PyTypeObject ethtool_etherinfoIPv6Type;
#ifndef IFF_DYNAMIC
#define IFF_DYNAMIC 0x8000 /* dialup device with changing addresses*/
@@ -963,12 +962,7 @@ PyMODINIT_FUNC initethtool(void)
Py_INCREF(&ethtool_etherinfoType);
PyModule_AddObject(m, "etherinfo", (PyObject *)&ethtool_etherinfoType);
- // Prepare the ethtool.etherinfo_ipv6addr class
- if (PyType_Ready(&ethtool_etherinfoIPv6Type) < 0)
- return;
- Py_INCREF(&ethtool_etherinfoIPv6Type);
- PyModule_AddObject(m, "etherinfo_ipv6addr", (PyObject *)&ethtool_etherinfoIPv6Type);
-
+ // Prepare the ethtool IPv4 address types
if (PyType_Ready(&ethtool_netlink_ipv4_address_Type))
return;