summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_obj.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2010-04-28 17:04:26 +0200
committerDavid Sommerseth <davids@redhat.com>2010-04-28 17:04:26 +0200
commit4f0295fca2cfd933f4b9b539d5505cb24e4d420c (patch)
treedd765ba839c30cbf45217983bbc39533c575c695 /python-ethtool/etherinfo_obj.h
parentd3fd6b84f461a4d7ffbf3f3eae37381150b69e82 (diff)
downloadpython-ethtool-4f0295fca2cfd933f4b9b539d5505cb24e4d420c.tar.gz
python-ethtool-4f0295fca2cfd933f4b9b539d5505cb24e4d420c.tar.xz
python-ethtool-4f0295fca2cfd933f4b9b539d5505cb24e4d420c.zip
Updated to fetch the interface information when the "getter" function triggers
Diffstat (limited to 'python-ethtool/etherinfo_obj.h')
-rw-r--r--python-ethtool/etherinfo_obj.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/python-ethtool/etherinfo_obj.h b/python-ethtool/etherinfo_obj.h
index 8ffdf7d..340dea8 100644
--- a/python-ethtool/etherinfo_obj.h
+++ b/python-ethtool/etherinfo_obj.h
@@ -36,19 +36,19 @@ static PyMethodDef _ethtool_etherinfo_methods[] = {
*
*/
static PyMemberDef _ethtool_etherinfo_members[] = {
- {"device", T_OBJECT_EX, offsetof(etherinfo_py, info), 0,
+ {"device", T_OBJECT_EX, offsetof(etherinfo_py, data), 0,
"Device name of the interface"},
- {"mac_address", T_OBJECT_EX, offsetof(etherinfo_py, info), 0,
+ {"mac_address", T_OBJECT_EX, offsetof(etherinfo_py, data), 0,
"MAC address / hardware address of the interface"},
- {"ipv4_address", T_OBJECT_EX, offsetof(etherinfo_py, info), 0,
+ {"ipv4_address", T_OBJECT_EX, offsetof(etherinfo_py, data), 0,
"IPv4 address"},
- {"ipv4_netmask", T_INT, offsetof(etherinfo_py, info), 0,
+ {"ipv4_netmask", T_INT, offsetof(etherinfo_py, data), 0,
"IPv4 netmask in bits"},
- {"ipv4_broadcast", T_OBJECT_EX, offsetof(etherinfo_py, info), 0,
+ {"ipv4_broadcast", T_OBJECT_EX, offsetof(etherinfo_py, data), 0,
"IPv4 broadcast address"},
- {"ipv6_address", T_OBJECT_EX, offsetof(etherinfo_py, info), 0,
+ {"ipv6_address", T_OBJECT_EX, offsetof(etherinfo_py, data), 0,
"IPv6 address"},
- {"ipv6_netmask", T_INT, offsetof(etherinfo_py, info), 0,
+ {"ipv6_netmask", T_INT, offsetof(etherinfo_py, data), 0,
"IPv6 netmask in bits"},
{NULL} /* End of member list */
};