summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2008-08-25 05:38:18 +0000
committerjulian <julian@FreeBSD.org>2008-08-25 05:38:18 +0000
commit64d908d08efb96c9d4abd5c31bfea8d6d2a8fed2 (patch)
treed844e467ff749ffe05b16bf4424e654ce716ac0d /sys/netinet/ip_fw2.c
parentd908a854a8b06380b128f7e9bce82ea914045ab7 (diff)
downloadFreeBSD-src-64d908d08efb96c9d4abd5c31bfea8d6d2a8fed2.zip
FreeBSD-src-64d908d08efb96c9d4abd5c31bfea8d6d2a8fed2.tar.gz
We left out V_static_len from ip_fw2.c
(also a whitespace diff that i'd rahter fix her ethan break in the vimage branch.)
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index f58899a..6a17274 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -3470,7 +3470,7 @@ add_rule(struct ip_fw_chain *chain, struct ip_fw *input_rule)
flush_rule_ptrs(chain);
done:
V_static_count++;
- static_len += l;
+ V_static_len += l;
IPFW_WUNLOCK(chain);
DEB(printf("ipfw: installed rule %d, static count now %d\n",
rule->rulenum, V_static_count);)
@@ -3503,7 +3503,7 @@ remove_rule(struct ip_fw_chain *chain, struct ip_fw *rule,
else
prev->next = n;
V_static_count--;
- static_len -= l;
+ V_static_len -= l;
rule->next = chain->reap;
chain->reap = rule;
@@ -4187,7 +4187,7 @@ ipfw_ctl(struct sockopt *sopt)
* change between calculating the size and returning the
* data in which case we'll just return what fits.
*/
- size = static_len; /* size of static rules */
+ size = V_static_len; /* size of static rules */
if (V_ipfw_dyn_v) /* add size of dyn.rules */
size += (V_dyn_count * sizeof(ipfw_dyn_rule));
OpenPOWER on IntegriCloud