socsvn commit: r273167 - soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw
dpl at FreeBSD.org
dpl at FreeBSD.org
Tue Aug 26 14:43:04 UTC 2014
Author: dpl
Date: Tue Aug 26 14:43:02 2014
New Revision: 273167
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=273167
Log:
Added needed variables.
Modified:
soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.c
soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.h
Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.c
==============================================================================
--- soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.c Tue Aug 26 13:53:01 2014 (r273166)
+++ soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.c Tue Aug 26 14:43:02 2014 (r273167)
@@ -31,6 +31,8 @@
int ipfw_find_rule(struct ip_fw_chain *chain, uint32_t key, uint32_t id);
void crfree(struct ucred *);
+// As done at netmap-ipfw
+time_t time_uptime = 0;
// This functions only forces the compiler to store the stubs of the functions
// so that they can be used by the JIT-compiled code instead.
Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.h
==============================================================================
--- soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.h Tue Aug 26 13:53:01 2014 (r273166)
+++ soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw_rules.h Tue Aug 26 14:43:02 2014 (r273167)
@@ -62,12 +62,18 @@
int ipfw_find_rule(struct ip_fw_chain *chain, uint32_t key, uint32_t id);
void crfree(struct ucred *);
+VNET_DEFINE(int, fw_verbose);
+
+VNET_DEFINE(u_int32_t, set_disable);
+#define V_set_disable VNET(set_disable)
+
static VNET_DEFINE(int, fw_deny_unknown_exthdrs);
#define V_fw_deny_unknown_exthdrs VNET(fw_deny_unknown_exthdrs)
static VNET_DEFINE(int, fw_permit_single_frag6) = 1;
#define V_fw_permit_single_frag6 VNET(fw_permit_single_frag6)
+
/*
* Some macros used in the various matching options.
* L3HDR maps an ipv4 pointer into a layer3 header pointer of type T
More information about the svn-soc-all
mailing list