diff options
author | David Sommerseth <davids@redhat.com> | 2013-09-13 18:46:15 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2013-09-13 18:49:10 +0200 |
commit | 052d432d9be11a0b6b69826b540b03d1b80904a4 (patch) | |
tree | 32a44b8c6b40c62e3be372141796987b34328804 /python-ethtool/etherinfo_struct.h | |
parent | abab733a87025960acee7dd0a2c029e679a502a8 (diff) | |
download | python-ethtool-052d432d9be11a0b6b69826b540b03d1b80904a4.tar.gz python-ethtool-052d432d9be11a0b6b69826b540b03d1b80904a4.tar.xz python-ethtool-052d432d9be11a0b6b69826b540b03d1b80904a4.zip |
Re-implement the IPv6 support
This uses the same approach as IPv4 uses.
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo_struct.h')
-rw-r--r-- | python-ethtool/etherinfo_struct.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python-ethtool/etherinfo_struct.h b/python-ethtool/etherinfo_struct.h index 6ae4d78..dff1105 100644 --- a/python-ethtool/etherinfo_struct.h +++ b/python-ethtool/etherinfo_struct.h @@ -35,6 +35,7 @@ struct etherinfo { int index; /**< NETLINK index reference */ char *hwaddress; /**< HW address / MAC address of device */ PyObject *ipv4_addresses; /**< list of PyNetlinkIPv4Address instances */ + PyObject *ipv6_addresses; /**< list of PyNetlinkIPv6Addresses instances */ }; /* Python object containing data baked from a (struct rtnl_addr) */ @@ -46,6 +47,15 @@ typedef struct PyNetlinkIPv4Address { } PyNetlinkIPv4Address; extern PyTypeObject ethtool_netlink_ipv4_address_Type; +/* Python object containing data baked from a (struct rtnl_addr) */ +typedef struct PyNetlinkIPv6Address { + PyObject_HEAD + PyObject *ipv6_address; /**< string: Configured IPv6 address */ + int ipv6_netmask; /**< int: Configured IPv6 prefix */ + PyObject *ipv6_scope; /**< string: IPv6 address scope */ +} PyNetlinkIPv6Address; +extern PyTypeObject ethtool_netlink_ipv6_address_Type; + /** * Contains the internal data structure of the * ethtool.etherinfo object. |