From owner-svn-soc-all@FreeBSD.ORG Tue Sep 9 16:15:22 2014 Return-Path: Delivered-To: svn-soc-all@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 5F285364 for ; Tue, 9 Sep 2014 16:15:22 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 482EF1B5 for ; Tue, 9 Sep 2014 16:15:22 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id s89GFMYK090062 for ; Tue, 9 Sep 2014 16:15:22 GMT (envelope-from dpl@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id s89GFLxU090058 for svn-soc-all@FreeBSD.org; Tue, 9 Sep 2014 16:15:21 GMT (envelope-from dpl@FreeBSD.org) Date: Tue, 9 Sep 2014 16:15:21 GMT Message-Id: <201409091615.s89GFLxU090058@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to dpl@FreeBSD.org using -f From: dpl@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r273852 - soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 16:15:22 -0000 Author: dpl Date: Tue Sep 9 16:15:21 2014 New Revision: 273852 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=273852 Log: Added filtering limit. Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_pfil.c Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_pfil.c ============================================================================== --- soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_pfil.c Tue Sep 9 15:19:38 2014 (r273851) +++ soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_pfil.c Tue Sep 9 16:15:21 2014 (r273852) @@ -120,6 +120,7 @@ SYSEND #endif /* SYSCTL_NODE */ +int counter = 0; /* * Handles the compilation and execution of the @@ -131,6 +132,7 @@ ipfw_chk_wrapper(struct ip_fw_args *args) { int ret; + counter++; /* If we haven't, JIT-compile the actions to be executed per-rule */ if (ipfw_chk_jit == 0) { @@ -148,6 +150,8 @@ IPFW_PF_RUNLOCK(chain); } #include + if (counter == 100) + err(1, "end"); return (ret); }