projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49daf6a
)
netfilter: ip6tables: use skb->len for accounting
author
Changli Gao
<xiaosuo@gmail.com>
Fri, 23 Jul 2010 14:24:34 +0000
(16:24 +0200)
committer
Patrick McHardy
<kaber@trash.net>
Fri, 23 Jul 2010 14:24:34 +0000
(16:24 +0200)
ipv6_hdr(skb)->payload_len is ZERO and can't be used for accounting, if
the payload is a Jumbo Payload specified in RFC2675.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/ip6_tables.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/netfilter/ip6_tables.c
b/net/ipv6/netfilter/ip6_tables.c
index dc41d6d3c6c6a6fb6e74b57fe12575362123aedf..33113c1ea02f787d595c96ba81a036c7850419b3 100644
(file)
--- a/
net/ipv6/netfilter/ip6_tables.c
+++ b/
net/ipv6/netfilter/ip6_tables.c
@@
-387,9
+387,7
@@
ip6t_do_table(struct sk_buff *skb,
goto no_match;
}
- ADD_COUNTER(e->counters,
- ntohs(ipv6_hdr(skb)->payload_len) +
- sizeof(struct ipv6hdr), 1);
+ ADD_COUNTER(e->counters, skb->len, 1);
t = ip6t_get_target_c(e);
IP_NF_ASSERT(t->u.kernel.target);