Skip to content

Commit a9d36a6

Browse files
committed
Use kernel representation of unused/invalid IPv4 broadcast
instead of Python None object.
1 parent b9e0539 commit a9d36a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-ethtool/etherinfo_obj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static PyObject *get_ipv4_bcast(PyObject *obj, void *info)
271271
if (PyErr_Occurred()) {
272272
return NULL;
273273
} else {
274-
Py_RETURN_NONE;
274+
return PyStr_FromString("0.0.0.0");
275275
}
276276
}
277277

0 commit comments

Comments
 (0)