summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2010-05-31 15:54:44 +0200
committerDavid Sommerseth <davids@redhat.com>2010-05-31 15:54:44 +0200
commit1d4b0d894dd833cd9ac9e62cbdc400f24a11e32b (patch)
tree671b24f0c9b172915d0b700e76c7aefcd12f934b
parent8f52f9132f8bda8491490618cc7792d393eb4fee (diff)
downloadpython-ethtool-1d4b0d894dd833cd9ac9e62cbdc400f24a11e32b.tar.gz
python-ethtool-1d4b0d894dd833cd9ac9e62cbdc400f24a11e32b.tar.xz
python-ethtool-1d4b0d894dd833cd9ac9e62cbdc400f24a11e32b.zip
Fixed a bug - IPv4 address quering tried to query NLQRY_LINK instead of NLQRY_ADDR
-rw-r--r--python-ethtool/etherinfo_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-ethtool/etherinfo_obj.c b/python-ethtool/etherinfo_obj.c
index b408a88..814da78 100644
--- a/python-ethtool/etherinfo_obj.c
+++ b/python-ethtool/etherinfo_obj.c
@@ -104,7 +104,7 @@ PyObject *_ethtool_etherinfo_getter(etherinfo_py *self, PyObject *attr_o)
get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_LINK);
ret = RETURN_STRING(self->data->ethinfo->hwaddress);
} else if( strcmp(attr, "ipv4_address") == 0 ) {
- get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_LINK);
+ get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_ADDR);
ret = RETURN_STRING(self->data->ethinfo->ipv4_address);
} else if( strcmp(attr, "ipv4_netmask") == 0 ) {
get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_ADDR);