Skip to content

Commit 1d4b0d8

Browse files
author
David Sommerseth
committed
Fixed a bug - IPv4 address quering tried to query NLQRY_LINK instead of NLQRY_ADDR
1 parent 8f52f91 commit 1d4b0d8

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
@@ -104,7 +104,7 @@ PyObject *_ethtool_etherinfo_getter(etherinfo_py *self, PyObject *attr_o)
104104
get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_LINK);
105105
ret = RETURN_STRING(self->data->ethinfo->hwaddress);
106106
} else if( strcmp(attr, "ipv4_address") == 0 ) {
107-
get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_LINK);
107+
get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_ADDR);
108108
ret = RETURN_STRING(self->data->ethinfo->ipv4_address);
109109
} else if( strcmp(attr, "ipv4_netmask") == 0 ) {
110110
get_etherinfo(self->data->ethinfo, self->data->nlc, NLQRY_ADDR);

0 commit comments

Comments
 (0)