[libnfnetlink] Suppress iftable_up function which is not used.

Eric Leblond netfilter-cvslog-bounces at lists.netfilter.org
Tue Dec 23 08:52:43 CET 2008


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=libnfnetlink.git;a=commit;h=3be8c8cc46188511ccb1128a689b3e9c9322beac
commit 3be8c8cc46188511ccb1128a689b3e9c9322beac
Author:     Eric Leblond <eric at inl.fr>
AuthorDate: Mon Dec 22 23:02:42 2008 +0100
Commit:     Eric Leblond <eric at inl.fr>
CommitDate: Tue Dec 23 08:51:40 2008 +0100

    Suppress iftable_up function which is not used.
    
    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.
       via  3be8c8cc46188511ccb1128a689b3e9c9322beac (commit)
      from  45a62646b54910244b91ebae62abf3b813d211d0 (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 3be8c8cc46188511ccb1128a689b3e9c9322beac
Author: Eric Leblond <eric at inl.fr>
Date:   Mon Dec 22 23:02:42 2008 +0100

    Suppress iftable_up function which is not used.
    
    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.

-----------------------------------------------------------------------

 src/iftable.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
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.

diff --git a/src/iftable.c b/src/iftable.c
index b6a8e72..7cca66f 100644
--- a/src/iftable.c
+++ b/src/iftable.c
@@ -172,23 +172,6 @@ int nlif_index2name(struct nlif_handle *h,
 	return -1;
 }
 
-static int iftable_up(struct nlif_handle *h, unsigned int index)
-{
-	unsigned int hash;
-	struct ifindex_node *this;
-
-	hash = index & 0xF;
-	list_for_each_entry(this, &h->ifindex_hash[hash], head) {
-		if (this->index == index) {
-			if (this->flags & IFF_UP)
-				return 1;
-			else
-				return 0;
-		}
-	}
-	return -1;
-}
-
 /** Initialize interface table
  *
  * Initialize rtnl interface and interface table



More information about the netfilter-cvslog mailing list