[IPV4]: annotate struct in_ifaddr
ifa_local, ifa_address, ifa_mask, ifa_broadcast and ifa_anycast are net-endian. Annotated them and variables that are inferred to be net-endian. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -825,7 +825,7 @@ int dev_netmask(void *d, void *m)
|
||||
struct net_device *dev = d;
|
||||
struct in_device *ip = dev->ip_ptr;
|
||||
struct in_ifaddr *in;
|
||||
__u32 *mask_out = m;
|
||||
__be32 *mask_out = m;
|
||||
|
||||
if(ip == NULL)
|
||||
return(1);
|
||||
|
Reference in New Issue
Block a user