summaryrefslogtreecommitdiffstats
path: root/src/iftable.c
Commit message (Collapse)AuthorAgeFilesLines
* Make it clear that this library is deprecatedDuncan Roe2019-11-041-1/+5
| | | | | | | | | | | src/iftable.c: Update group description src/libnfnetlink.c: - Re-work main page (which was based on the misconception that this library always gets used) - Update group description Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Minimally resurrect doxygen documentationDuncan Roe2019-11-041-0/+9
| | | | | | | | | | | | | | | | | | | | | | | The documentation was written in the days before doxygen required groups or even doxygen.cfg, so create doxygen.cfg.in and introduce one \defgroup per source file, encompassing pretty-much the whole file. Also add a tiny \mainpage. Added: doxygen.cfg.in: Same as for libmnl except FILE_PATTERNS = *.c libnfnetlink.h Updated: configure.ac: Create doxygen.cfg src/iftable.c: Add defgroup src/libnfnetlink.c: Add mainpage and defgroup Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: Use stdint types everywhereFelix Janda2015-05-291-4/+4
| | | | | 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-1/+1
| | | | | | | | 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-1/+11
| | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* iftable: fix wrong handler unregistration on errorPablo Neira Ayuso2010-09-301-1/+1
| | | | | | | | Need to unregister the ifadd_handler in err_unregister instead of unregistering ifdel_handler. Signed-off-by: Andrey Kuzin <kuzinandrey@yandex.ru> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* iftable: add nlif_get_ifflags to get the network interface flagsPablo Neira Ayuso2009-01-071-0/+33
| | | | | | | | This patch adds the nlif_get_ifflags to get the interface flags. This patch also modifies the example file to display if a network interface is running or not. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nlif: fix possible re-insertion in the list of interfacesPablo Neira Ayuso2009-01-071-1/+2
| | | | | | | This patch fixes a possible re-insertion of an existing entry in the list of interfaces. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Suppress iftable_up function which is not used.Eric Leblond2008-12-231-17/+0
| | | | | | Following compilation warning pointed out by Jan Engelhardt, this patch suppresses the iftable_up function which is of no use in this part of libnfnetlink library whom goal is to do ifindex to name resolution.
* major cleanup of index2name infrastructure: use linux list (and fix leak in ↵Pablo Neira Ayuso2008-05-251-93/+85
| | | | the nlif_close path)
* 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-88/+63
|
* - 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-62/+142
| | | | - 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/+261