From abab733a87025960acee7dd0a2c029e679a502a8 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 13 Sep 2013 18:16:26 +0200 Subject: 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 --- python-ethtool/ethtool.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'python-ethtool/ethtool.c') 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(ðtool_etherinfoType); PyModule_AddObject(m, "etherinfo", (PyObject *)ðtool_etherinfoType); - // Prepare the ethtool.etherinfo_ipv6addr class - if (PyType_Ready(ðtool_etherinfoIPv6Type) < 0) - return; - Py_INCREF(ðtool_etherinfoIPv6Type); - PyModule_AddObject(m, "etherinfo_ipv6addr", (PyObject *)ðtool_etherinfoIPv6Type); - + // Prepare the ethtool IPv4 address types if (PyType_Ready(ðtool_netlink_ipv4_address_Type)) return; -- cgit