forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
261abc8c96
commit
7df0884ce1
@ -364,7 +364,7 @@ ipt_do_table(struct sk_buff *skb,
|
||||
goto no_match;
|
||||
}
|
||||
|
||||
ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1);
|
||||
ADD_COUNTER(e->counters, skb->len, 1);
|
||||
|
||||
t = ipt_get_target(e);
|
||||
IP_NF_ASSERT(t->u.kernel.target);
|
||||
|
Loading…
Reference in New Issue
Block a user