summaryrefslogtreecommitdiffstats
path: root/python-ethtool
diff options
context:
space:
mode:
Diffstat (limited to 'python-ethtool')
-rw-r--r--python-ethtool/ethtool.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index 85c4737..c6a9af4 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -234,7 +234,7 @@ static PyObject *get_ipaddress(PyObject *self __unused, PyObject *args)
*
* @return Python list of objects on success, otherwise NULL.
*/
-static PyObject *get_interface_info(PyObject *self __unused, PyObject *args) {
+static PyObject *get_interfaces_info(PyObject *self __unused, PyObject *args) {
PyObject *devlist = NULL, *ethinf_py = NULL;
PyObject *inargs = NULL;
char **fetch_devs;
@@ -888,9 +888,11 @@ static struct PyMethodDef PyEthModuleMethods[] = {
.ml_flags = METH_VARARGS,
},
{
- .ml_name = "get_interface_info",
- .ml_meth = (PyCFunction)get_interface_info,
+ .ml_name = "get_interfaces_info",
+ .ml_meth = (PyCFunction)get_interfaces_info,
.ml_flags = METH_VARARGS,
+ .ml_doc = "Accepts a string, list or tupples of interface names. "
+ "Returns a list of ethtool.etherinfo objets with device information."
},
{
.ml_name = "get_netmask",