Skip to content

Commit b9f2704

Browse files
committed
Add class etherinfo to ethtool module
1 parent 4045338 commit b9f2704

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python-ethtool/ethtool.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,10 @@ MODULE_INIT_FUNC(ethtool)
953953
PyModule_AddIntConstant(m, "AF_INET6", AF_INET6); /* IPv6 interface */
954954
PyModule_AddStringConstant(m, "version", "python-ethtool v" VERSION);
955955

956-
return MOD_SUCCESS_VAL(m);
956+
Py_INCREF(&PyEtherInfo_Type);
957+
PyModule_AddObject(m, "etherinfo", (PyObject *)&PyEtherInfo_Type);
958+
959+
return m;
957960
}
958961

959962

0 commit comments

Comments
 (0)