From 1d4b0d894dd833cd9ac9e62cbdc400f24a11e32b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 31 May 2010 15:54:44 +0200 Subject: Fixed a bug - IPv4 address quering tried to query NLQRY_LINK instead of NLQRY_ADDR --- python-ethtool/etherinfo_obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python-ethtool/etherinfo_obj.c') 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); -- cgit