[libnfnetlink] iftable: add nlif_get_ifflags to get the network interface flags
Pablo Neira
netfilter-cvslog-bounces at lists.netfilter.org
Wed Jan 7 02:34:42 CET 2009
Gitweb: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=libnfnetlink.git;a=commit;h=6833d97a2314ddce5a7a65402c0afba37e8913c4
commit 6833d97a2314ddce5a7a65402c0afba37e8913c4
Author: Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Wed Jan 7 01:17:39 2009 +0100
Commit: Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Wed Jan 7 01:17:39 2009 +0100
iftable: add nlif_get_ifflags to get the network interface flags
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 at netfilter.org>
commit bcf809779eb43adfc598746e02d522751d9aaeac
Author: Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Wed Jan 7 01:17:31 2009 +0100
Commit: Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Wed Jan 7 01:17:31 2009 +0100
nlif: fix possible re-insertion in the list of interfaces
This patch fixes a possible re-insertion of an existing entry in
the list of interfaces.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
via 6833d97a2314ddce5a7a65402c0afba37e8913c4 (commit)
via bcf809779eb43adfc598746e02d522751d9aaeac (commit)
from 3be8c8cc46188511ccb1128a689b3e9c9322beac (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6833d97a2314ddce5a7a65402c0afba37e8913c4
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date: Wed Jan 7 01:17:39 2009 +0100
iftable: add nlif_get_ifflags to get the network interface flags
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 at netfilter.org>
commit bcf809779eb43adfc598746e02d522751d9aaeac
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date: Wed Jan 7 01:17:31 2009 +0100
nlif: fix possible re-insertion in the list of interfaces
This patch fixes a possible re-insertion of an existing entry in
the list of interfaces.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
-----------------------------------------------------------------------
include/libnfnetlink/libnfnetlink.h | 3 ++
src/iftable.c | 36 ++++++++++++++++++++++++++++++++++-
utils/iftest.c | 7 +++++-
3 files changed, 44 insertions(+), 2 deletions(-)
This patch fixes a possible re-insertion of an existing entry in
the list of interfaces.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
diff --git a/src/iftable.c b/src/iftable.c
index 7cca66f..3a4b0cb 100644
--- a/src/iftable.c
+++ b/src/iftable.c
@@ -98,7 +98,8 @@ static int iftable_add(struct nlmsghdr *n, void *arg)
}
strcpy(this->name, RTA_DATA(cb[IFLA_IFNAME]));
- list_add(&this->head, &h->ifindex_hash[hash]);
+ if (!found)
+ list_add(&this->head, &h->ifindex_hash[hash]);
return 1;
}
More information about the netfilter-cvslog
mailing list