Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2014 16:15:21 GMT
From:      dpl@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r273852 - soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw
Message-ID:  <201409091615.s89GFLxU090058@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <err.h>
+	if (counter == 100)
+		err(1, "end");
 	return (ret);
 }
 



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