mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
[PATCH] missing ntohs() in ip6_tunnel
->payload_len is net-endian Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
00fc00df9e
commit
cc6cdac0cf
@ -458,7 +458,7 @@ ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
|||||||
mtu = IPV6_MIN_MTU;
|
mtu = IPV6_MIN_MTU;
|
||||||
t->dev->mtu = 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_type = ICMPV6_PKT_TOOBIG;
|
||||||
rel_code = 0;
|
rel_code = 0;
|
||||||
rel_info = mtu;
|
rel_info = mtu;
|
||||||
|
Loading…
Reference in New Issue
Block a user