| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Get rid of not needed struct wrapping | David Sommerseth | 2010-08-03 | 1 | -4/+4 |
| | | | | | | | | | | | The struct nl_handle was wrapped inside struct _nlconnection. This is really not needed if open_netlink() and close_netlink() functions uses "pointer's pointer" (struct nl_handle **) instead. Removes also the need to declare a static struct _nlconnection, as the global nlconnection variable can now be a pointer as well. Signed-off-by: David Sommerseth <davids@redhat.com> | ||||
| * | Added missing copyright notifications and updated where needed | David Sommerseth | 2010-08-03 | 1 | -1/+1 |
| | | | | | Signed-off-by: David Sommerseth <davids@redhat.com> | ||||
| * | Improved documentation in the code | David Sommerseth | 2010-08-02 | 1 | -3/+57 |
| | | | | | Signed-off-by: David Sommerseth <davids@redhat.com> | ||||
| * | Improved IPv6 support | David Sommerseth | 2010-07-30 | 1 | -14/+63 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the IPv6 protocol allows a single device to have more than one IPv6 address, the previous implementation did not provide all IPv6 information. It would reject all except the last parsed IPv6 address. NOTE: This implementation will break the previous API. This change removes the ethtool.etherinfo.ipv6_address and ethtool.etherinfo.ipv6_netmask members. A new member is added, ethtool.etherinfo.ipv6_addresses (in plural). This contains a tupple list containing of ethtool.etherinfo_ipv6addr objects, one object for each configured IPv6 address on the device. These objects have the following members available: .address - The IPv6 address .netmask - The IPv6 netmask (in bit notation) .scope - A string with the IPv6 address scope Example code: import ethtool devs = ethtool.get_interfaces_info('eth0') for ip6 in devs[0].ipv6_addresses: print "[%s] %s/%i" % (ip6.scope, ip6.address, ip6.netmask) Signed-off-by: David Sommerseth <davids@redhat.com> | ||||
| * | Updated to fetch the interface information when the "getter" function triggers | David Sommerseth | 2010-04-28 | 1 | -82/+59 |
| | | |||||
| * | Rewritten ethtool to make use of libnl instead of accessing NETLINK directly | David Sommerseth | 2010-04-26 | 1 | -392/+118 |
| | | |||||
| * | Even more clean up. Improved more error messages | David Sommerseth | 2009-08-24 | 1 | -15/+32 |
| | | |||||
| * | Fixed typos, more clean up | David Sommerseth | 2009-08-24 | 1 | -6/+7 |
| | | |||||
| * | Give some credit | David Sommerseth | 2009-08-24 | 1 | -0/+1 |
| | | |||||
| * | Improved error handling, clean up | David Sommerseth | 2009-08-24 | 1 | -7/+14 |
| | | |||||
| * | Imported functions for retrieving ethernet device info via AF_NETLINK | David Sommerseth | 2009-08-24 | 1 | -0/+503 |
