OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fc00d
)
[PATCH] missing ntohs() in ip6_tunnel
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 18 Feb 2006 21:02:18 +0000
(16:02 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 18 Feb 2006 21:02:18 +0000
(16:02 -0500)
->payload_len is net-endian
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/ipv6/ip6_tunnel.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ip6_tunnel.c
b/net/ipv6/ip6_tunnel.c
index
92ead3c
..
faea8a1
100644
(file)
--- a/
net/ipv6/ip6_tunnel.c
+++ b/
net/ipv6/ip6_tunnel.c
@@
-458,7
+458,7
@@
ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
mtu = IPV6_MIN_MTU;
t->dev->mtu = mtu;
- if ((len = sizeof (*ipv6h) +
ipv6h->payload_len
) > mtu) {
+ if ((len = sizeof (*ipv6h) +
ntohs(ipv6h->payload_len)
) > mtu) {
rel_type = ICMPV6_PKT_TOOBIG;
rel_code = 0;
rel_info = mtu;