We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4045338 commit b9f2704Copy full SHA for b9f2704
python-ethtool/ethtool.c
@@ -953,7 +953,10 @@ MODULE_INIT_FUNC(ethtool)
953
PyModule_AddIntConstant(m, "AF_INET6", AF_INET6); /* IPv6 interface */
954
PyModule_AddStringConstant(m, "version", "python-ethtool v" VERSION);
955
956
- return MOD_SUCCESS_VAL(m);
+ Py_INCREF(&PyEtherInfo_Type);
957
+ PyModule_AddObject(m, "etherinfo", (PyObject *)&PyEtherInfo_Type);
958
+
959
+ return m;
960
}
961
962
0 commit comments