[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user