socsvn commit: r273852 - soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw

dpl at FreeBSD.org dpl at FreeBSD.org
Tue Sep 9 16:15:22 UTC 2014


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);
 }
 


More information about the svn-soc-all mailing list