summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated MANIFEST to include new needed source filesDavid Sommerseth2010-07-301-0/+2
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Improved IPv6 supportDavid Sommerseth2010-07-307-39/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fixed a bug - IPv4 address quering tried to query NLQRY_LINK instead of ↵David Sommerseth2010-05-311-1/+1
| | | | NLQRY_ADDR
* Renamed get_interface_info() to get_interfaces_info() and updated help stringDavid Sommerseth2010-05-041-3/+5
| | | | | This is to make it a bit clearer that the result type of this function always will be a list of ethtool.etherinfo objects.
* Clean up - avoid static variables in etherinfo_obj.hDavid Sommerseth2010-04-283-79/+80
|
* Updated MANIFEST with the extra files neededDavid Sommerseth2010-04-281-0/+5
|
* Updated .spec file with BuildRequires libnl-develDavid Sommerseth2010-04-281-2/+5
|
* Updated to fetch the interface information when the "getter" function triggersDavid Sommerseth2010-04-286-137/+222
|
* Rewritten ethtool to make use of libnl instead of accessing NETLINK directlyDavid Sommerseth2010-04-264-434/+186
|
* Added parameter to get_interface_inf()David Sommerseth2009-09-161-2/+66
| | | | | | | | | | It can handle a string with a device name or a list or a tuple list with more devices. dev = ethtool.get_interface_info(['lo','eth0','pan0']) dev = ethtool.get_interface_info(('eth0','virbr0')) dev = ethtool.get_interface_info('lo') dev = ethtool.get_interface_info()
* Removed the previous "attempt" of IPv6 support, get_ipaddresses()David Sommerseth2009-09-071-34/+0
|
* Changed the RETURN_STRING() macro to return None instead of False, to make ↵David Sommerseth2009-09-071-3/+3
| | | | it more Pythonish
* Make Python dir() function work with ethtool.etherinfo objectsDavid Sommerseth2009-09-071-2/+1
|
* Completed implementing the new Python get_interface_info() function.David Sommerseth2009-09-073-17/+124
| | | | | | | | | | | | | | | | | | It will return a list of Python etherinfo objects. These objects have the following properties: .device - Device name .mac_address - Hardware address .ipv4_address .ipv4_netmask .ipv4_broadcast .ipv6_address .ipv6_netmask In addition, it will produce a human readable output if these objects are treated as strings. It will not be possible to modify any of the properties in these objects.
* First cut at a python etherinfo class in C. Does nothing useful yet.David Sommerseth2009-09-046-4/+264
|
* Even more clean up. Improved more error messagesDavid Sommerseth2009-08-241-15/+32
|
* Fixed typos, more clean upDavid Sommerseth2009-08-241-6/+7
|
* Give some creditDavid Sommerseth2009-08-241-0/+1
|
* Improved error handling, clean upDavid Sommerseth2009-08-241-7/+14
|
* Added new function: get_ipaddresses() - retrieves IPv4 and IPv6 addresses ↵David Sommerseth2009-08-242-2/+40
| | | | for all devices
* Imported functions for retrieving ethernet device info via AF_NETLINKDavid Sommerseth2009-08-242-0/+539
|
* ethtool: Older kernels don't have IFF_DYNAMICArnaldo Carvalho de Melo2009-05-281-0/+4
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: Rewrote build and install sections as part of the fedora review processArnaldo Carvalho de Melo2008-09-051-5/+9
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* pifconfig: Add python ifconfig equivalent to test featuresv0.3Arnaldo Carvalho de Melo2008-08-263-1/+107
| | | | | | A la pethtool Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* pethtool: rename ethtool-cmd.py to pethtool.pyArnaldo Carvalho de Melo2008-08-263-2/+2
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: Add a function to get the interface flagsRuben Kerkhof2008-08-251-15/+65
| | | | | Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: Added URL tag and URL to the Source tagArnaldo Carvalho de Melo2008-08-201-1/+2
| | | | | | Part of the fedora review process. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: rewrite summary, description, fix changelogArnaldo Carvalho de Melo2008-08-201-3/+9
| | | | | | Part of the fedora review process. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: Add licenseArnaldo Carvalho de Melo2008-08-201-0/+16
| | | | | | Part of the fedora review process. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: initialize some variables to shut up gccArnaldo Carvalho de Melo2008-08-191-4/+4
| | | | | | | python-ethtool/ethtool.c: In function 'get_tso': python-ethtool/ethtool.c:480: warning: 'value' may be used uninitialized in this function Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: add %build sectionArnaldo Carvalho de Melo2008-08-191-0/+3
| | | | | | Not strictly needed, added to shut up rpmlint. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* Makefile: fixup version extractionArnaldo Carvalho de Melo2008-08-191-1/+1
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* MANIFEST: create file, needed by make rpmdevArnaldo Carvalho de Melo2008-08-071-0/+8
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* Makefile: standardize on the one used in p-l-procfsArnaldo Carvalho de Melo2008-08-071-49/+19
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: fixup sitearchArnaldo Carvalho de Melo2008-08-071-0/+4
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: bindings for binding for ETHTOOL_[GS]RINGPARAMArnaldo Carvalho de Melo2008-07-182-2/+129
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: remove unused variables from set_tsoArnaldo Carvalho de Melo2008-07-151-3/+0
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: binding for ETHTOOL_SCOALESCEArnaldo Carvalho de Melo2008-07-152-10/+154
| | | | | | | | | | | | | | And support in pethtool (aka ethtool-cmd.py) for setting all the coalesce parameters, providing, as usual, an interface that mimics the one provided by the ethtool command. This cset also introduces struct_desc_from_dict, that will help with other dict based python bindings, not just in python-ethtool. Please let me know if I'm reinventing the wheel, i.e. if there are other Python dict to C struct facilities out there (I bet there is, but heck, this one was easy enough to implement and doesn't requires external support to get this done 8)). Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: implement binding for get_coalesceArnaldo Carvalho de Melo2008-07-142-9/+188
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* Makefile: bz2dev and rpmdev targetsArnaldo Carvalho de Melo2008-07-141-0/+8
| | | | | | So that we can build a rpm with the current working files. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* pethtool: show if a device is active or notArnaldo Carvalho de Melo2008-07-021-1/+6
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* pethtool: Add python ethtool equivalent to test featuresArnaldo Carvalho de Melo2008-07-012-0/+139
| | | | | | | | It should be as close to the ethtool usage model as possible, but things like doing the same command on all available interfaces when no interface is specified is implemented. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* Makefile: fix 'make clean'Arnaldo Carvalho de Melo2008-06-301-1/+2
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: implement set_tsoArnaldo Carvalho de Melo2008-06-301-12/+48
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: delete top level specfile now that we have it in rpm/SPECSArnaldo Carvalho de Melo2008-06-301-33/+0
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* ethtool: Make get_dev_int_value genericArnaldo Carvalho de Melo2008-06-301-2/+7
| | | | | | Will be used for ETHTOOL_GCOALESCE and others that retrieve a struct. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* Makefile: Add bz2 and rpm targetsArnaldo Carvalho de Melo2008-06-301-0/+6
| | | | | | | | To build an rpm now use: make rpm Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* rpm: Add specfile from RHELArnaldo Carvalho de Melo2008-06-301-0/+39
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* setup: fix version field, we're at 0.2Arnaldo Carvalho de Melo2008-06-301-1/+1
| | | | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
* [PYTHON-ETHTOOL]: Create repositoryArnaldo Carvalho de Melo2007-12-186-0/+1355
From code in fedora's rhpl. Code indented, offload methods (tso, etc) added. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>