summaryrefslogtreecommitdiffstats
path: root/src/iftable.c
Commit message (Collapse)AuthorAgeFilesLines
* 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