From owner-svn-src-projects@FreeBSD.ORG Sun Jun 15 13:43:45 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2F2F4CA1; Sun, 15 Jun 2014 13:43:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CC9D2BF4; Sun, 15 Jun 2014 13:43:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5FDhiIL051601; Sun, 15 Jun 2014 13:43:44 GMT (envelope-from melifaro@svn.freebsd.org) Received: (from melifaro@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5FDhiKJ051599; Sun, 15 Jun 2014 13:43:44 GMT (envelope-from melifaro@svn.freebsd.org) Message-Id: <201406151343.s5FDhiKJ051599@svn.freebsd.org> From: "Alexander V. Chernikov" Date: Sun, 15 Jun 2014 13:43:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r267510 - projects/ipfw/sys/netpfil/ipfw X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2014 13:43:45 -0000 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 */