diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-07-23 10:25:11 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-23 10:25:11 -0400 |
commit | 7df0884ce144396fc151f2af7a73d5fb305f9b03 (patch) | |
tree | e7557990c5e96ffe8b81d8107c98a9a134786fcf /net | |
parent | 261abc8c964e018256c1bcbd99b8a208c624d7cc (diff) |
netfilter: iptables: use skb->len for accounting
Use skb->len for accounting as xt_quota does.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index b38c11810c6..3c584a6765b 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c | |||
@@ -364,7 +364,7 @@ ipt_do_table(struct sk_buff *skb, | |||
364 | goto no_match; | 364 | goto no_match; |
365 | } | 365 | } |
366 | 366 | ||
367 | ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1); | 367 | ADD_COUNTER(e->counters, skb->len, 1); |
368 | 368 | ||
369 | t = ipt_get_target(e); | 369 | t = ipt_get_target(e); |
370 | IP_NF_ASSERT(t->u.kernel.target); | 370 | IP_NF_ASSERT(t->u.kernel.target); |