summaryrefslogtreecommitdiffstats
path: root/src/rtnl.c
Commit message (Collapse)AuthorAgeFilesLines
* src: Use stdint types everywhereFelix Janda2015-05-291-2/+2
| | | | | Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: get source code license header in sync with current licensing termsPablo Neira Ayuso2013-08-071-2/+2
| | | | | | | | Since (3956761 license: upgrade to GPLv2+), we upgraded to GPLv2+, propagate that changes to src/iftable.c and src/rtnl.c Reported-by: Thomas Woerner <twoerner@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* iftable: fix incomplete list of interfaces via nlif_queryPablo Neira Ayuso2012-08-131-0/+9
| | | | | | | | | | | | | | | | | | | | RTM_GETLINK with NLM_F_DUMP returns a multi-part netlink message. The existing code only handled the first message of it, thus, ignoring the remaining interfaces. This is the cause of the following bug in conntrackd: [Thu Aug 9 14:14:23 2012] (pid=3819) [notice] -- starting in daemon mode -- [Thu Aug 9 14:14:23 2012] (pid=3819) [ERROR] no dedicated links available! [Thu Aug 9 14:14:23 2012] (pid=3819) [ERROR] no dedicated links available! [Thu Aug 9 14:14:23 2012] (pid=3819) [ERROR] no dedicated links available! [Thu Aug 9 14:19:54 2012] (pid=3819) [notice] ---- shutdown received ---- Thanks to Jan Engelhardt for providing useful pointer to address the problem. Reported-by: Arturo Borrero <aborrero@cica.es> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: remove redundant castsJan Engelhardt2010-11-091-6/+6
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* rtnl: fix wrong netlink group bindings in the interface APIPablo Neira Ayuso2009-04-291-2/+1
| | | | | | | | | This patch removes RTMGRP_IPV4_ROUTE and RTMGRP_IPV4_IFADDR which report event notifications about changes in the route and address of interfaces. We are only interested in the interface link status so RTMGRP_LINK is enough. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* fix warning, getsockname takes a socklen_t as third parameterlibnfnetlink-0.0.38Pablo Neira Ayuso2008-05-311-1/+1
|
* major cleanup of index2name infrastructure: use linux list (and fix leak in ↵Pablo Neira Ayuso2008-05-251-1/+2
| | | | the nlif_close path)
* [patch] libnfnetlink compile fix (Thomas Jarosch <thomas.jarosch@intra2net.com>)/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org2007-03-161-0/+1
| | | | | attached patch fixes compilation of libnfnetlink for old glibc versions. Otherwise "struct iovec" is undefined.
* partial cleanup for iftable.c and rtnl.c, still appropiate errno missing/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org2007-02-121-55/+51
|
* - Initial commit of index2interface API (Eric Leblond), still work to do/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org2007-01-261-50/+64
| | | | - added a test file to utils/iftest.c
* add (but not use) rtnetlink source code for resolving ifindex<->devname/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-121-0/+246