summaryrefslogtreecommitdiffstats
path: root/python-ethtool/netlink.c
Commit message (Collapse)AuthorAgeFilesLines
* Check that we get a proper NETLINK connectionHEADmasterDavid Sommerseth2014-05-081-1/+3
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Added some extra error checks with libnl callsDavid Sommerseth2014-01-101-2/+2
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* cleanup: Rename etherinfo_py and ethtool_etherinfo_TypeDavid Sommerseth2014-01-091-4/+4
| | | | | | | | | Use PyEtherInfo and PyEtherInfoType the base names, to more easily see their relation, and more clearly indicate they are Python objects. Also remove an initialisation of PyEtherInfo/etherinfo_py not needed any more. Signed-off-by: David Sommerseth <davids@redhat.com>
* Reduce the NETLINK pointer complexityDavid Sommerseth2013-12-171-22/+35
| | | | | | | | | | | | Make the NETLINK connection pointer and user counter local global variables inside netlink.c only. Where NETLINK calls via libnl is required, rather use get_nlc() to get a NETLINK connection. This also prepares the next step, to get rid of the struct etherinfo_obj_data wrapper. Signed-off-by: David Sommerseth <davids@redhat.com>
* Split out generic NETLINK functions from etherinfo.c to netlink.cDavid Sommerseth2013-12-101-0/+113
Primarily just to clean up the code Signed-off-by: David Sommerseth <davids@redhat.com>