[IPV6]: Misc endianness annotations.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Al Viro
2006-11-14 20:56:00 -08:00
committed by David S. Miller
parent b09b845ca6
commit e69a4adc66
22 changed files with 62 additions and 60 deletions

View File

@@ -1267,10 +1267,11 @@ skip_defrtr:
}
if (ndopts.nd_opts_mtu) {
__be32 n;
u32 mtu;
memcpy(&mtu, ((u8*)(ndopts.nd_opts_mtu+1))+2, sizeof(mtu));
mtu = ntohl(mtu);
memcpy(&n, ((u8*)(ndopts.nd_opts_mtu+1))+2, sizeof(mtu));
mtu = ntohl(n);
if (mtu < IPV6_MIN_MTU || mtu > skb->dev->mtu) {
ND_PRINTK2(KERN_WARNING