diff options
Diffstat (limited to 'python-ethtool/ethtool.c')
| -rw-r--r-- | python-ethtool/ethtool.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c index c6a9af4..7115fb0 100644 --- a/python-ethtool/ethtool.c +++ b/python-ethtool/ethtool.c @@ -32,6 +32,7 @@ static struct _nlconnection nlconnection; extern PyTypeObject ethtool_etherinfoType; +extern PyTypeObject ethtool_etherinfoIPv6Type; #ifndef IFF_DYNAMIC #define IFF_DYNAMIC 0x8000 /* dialup device with changing addresses*/ @@ -1025,6 +1026,12 @@ 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 an internal netlink connection object if( open_netlink(&nlconnection) ) { PyModule_AddObject(m, "__nlconnection", |
