Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 2014 13:43:44 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r267510 - projects/ipfw/sys/netpfil/ipfw
Message-ID:  <201406151343.s5FDhiKJ051599@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Sun Jun 15 13:43:44 2014
New Revision: 267510
URL: http://svnweb.freebsd.org/changeset/base/267510

Log:
  Remove unused ipfw_dump_xtable().

Modified:
  projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c
  projects/ipfw/sys/netpfil/ipfw/ip_fw_table.h

Modified: projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c
==============================================================================
--- projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c	Sun Jun 15 13:40:27 2014	(r267509)
+++ projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c	Sun Jun 15 13:43:44 2014	(r267510)
@@ -1084,34 +1084,6 @@ dump_table_xentry(void *e, void *arg)
 	return (ta->dump_xentry(tc->astate, da->ti, e, xent));
 }
 
-
-int
-ipfw_dump_xtable(struct ip_fw_chain *ch, struct tid_info *ti, ipfw_xtable *xtbl)
-{
-	struct table_config *tc;
-	struct table_algo *ta;
-	struct dump_args da;
-
-	xtbl->cnt = 0;
-
-	if ((tc = find_table(CHAIN_TO_NI(ch), ti)) == NULL)
-		return (0);	/* XXX: We should return ESRCH */
-
-	memset(&da, 0, sizeof(da));
-	da.ti = KIDX_TO_TI(ch, tc->no.kidx);
-	da.tc = tc;
-	da.xent = &xtbl->xent[0];
-	da.size = xtbl->size;
-	xtbl->type = tc->no.type;
-	xtbl->tbl = ti->uidx;
-	ta = tc->ta;
-
-	ta->foreach(tc->astate, da.ti, dump_table_xentry, &da);
-	xtbl->cnt = da.cnt;
-
-	return (0);
-}
-
 /*
  * Table algorithms
  */ 

Modified: projects/ipfw/sys/netpfil/ipfw/ip_fw_table.h
==============================================================================
--- projects/ipfw/sys/netpfil/ipfw/ip_fw_table.h	Sun Jun 15 13:40:27 2014	(r267509)
+++ projects/ipfw/sys/netpfil/ipfw/ip_fw_table.h	Sun Jun 15 13:43:44 2014	(r267510)
@@ -122,8 +122,6 @@ int ipfw_count_xtable(struct ip_fw_chain
     uint32_t *cnt);
 int ipfw_dump_table_legacy(struct ip_fw_chain *ch, struct tid_info *ti,
     ipfw_table *tbl);
-int ipfw_dump_xtable(struct ip_fw_chain *ch, struct tid_info *ti,
-    ipfw_xtable *tbl);
 
 
 #endif /* _KERNEL */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406151343.s5FDhiKJ051599>