summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_obj.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-12-20 00:14:49 +0100
committerDavid Sommerseth <davids@redhat.com>2013-12-20 00:14:49 +0100
commitd8b7393db11aec4e0e332dd1dfb6dc6f34888206 (patch)
treeb85741811d8386cb288733d08ff847317c85f5e3 /python-ethtool/etherinfo_obj.c
parente3036b284d41977f240592ebb4148e4283176682 (diff)
downloadpython-ethtool-d8b7393db11aec4e0e332dd1dfb6dc6f34888206.tar.gz
python-ethtool-d8b7393db11aec4e0e332dd1dfb6dc6f34888206.tar.xz
python-ethtool-d8b7393db11aec4e0e332dd1dfb6dc6f34888206.zip
Split out the link info from get_etherinfo()
This is a needed step for the next move, where we'll query the interfaces for IP address at as late as possible. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo_obj.c')
-rw-r--r--python-ethtool/etherinfo_obj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/python-ethtool/etherinfo_obj.c b/python-ethtool/etherinfo_obj.c
index 26a63f2..8e3da62 100644
--- a/python-ethtool/etherinfo_obj.c
+++ b/python-ethtool/etherinfo_obj.c
@@ -147,7 +147,7 @@ PyObject *_ethtool_etherinfo_getter(etherinfo_py *self, PyObject *attr_o)
return Py_INCREF(Py_None), Py_None;
}
} else if( strcmp(attr, "mac_address") == 0 ) {
- get_etherinfo(self, NLQRY_LINK);
+ get_etherinfo_link(self);
Py_INCREF(self->ethinfo->hwaddress);
return self->ethinfo->hwaddress;
} else if( strcmp(attr, "ipv4_address") == 0 ) {
@@ -216,7 +216,7 @@ PyObject *_ethtool_etherinfo_str(etherinfo_py *self)
return NULL;
}
- get_etherinfo(self, NLQRY_LINK);
+ get_etherinfo_link(self);
get_etherinfo(self, NLQRY_ADDR4);
get_etherinfo(self, NLQRY_ADDR6);