summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_struct.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-12-16 12:17:03 +0100
committerDavid Sommerseth <davids@redhat.com>2013-12-16 12:23:43 +0100
commita05f17ca5737d03b127dd599363f009d5c6c8d48 (patch)
treecb5213c2fd9aea198bf8b0be8f414b54cdfc99e9 /python-ethtool/etherinfo_struct.h
parent3236cbdb03ed84271aeacc932760752a733204d4 (diff)
downloadpython-ethtool-a05f17ca5737d03b127dd599363f009d5c6c8d48.tar.gz
python-ethtool-a05f17ca5737d03b127dd599363f009d5c6c8d48.tar.xz
python-ethtool-a05f17ca5737d03b127dd599363f009d5c6c8d48.zip
Make the internal MAC address a Python string object
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo_struct.h')
-rw-r--r--python-ethtool/etherinfo_struct.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-ethtool/etherinfo_struct.h b/python-ethtool/etherinfo_struct.h
index 72e4962..e5e6ecd 100644
--- a/python-ethtool/etherinfo_struct.h
+++ b/python-ethtool/etherinfo_struct.h
@@ -33,7 +33,7 @@
struct etherinfo {
char *device; /**< Device name */
int index; /**< NETLINK index reference */
- char *hwaddress; /**< HW address / MAC address of device */
+ PyObject *hwaddress; /**< string: HW address / MAC address of device */
PyObject *ipv4_addresses; /**< list of PyNetlinkIPv4Address instances */
PyObject *ipv6_addresses; /**< list of PyNetlinkIPv6Addresses instances */
};