[IPV4] net/ipv4: Use ipv4_is_<type>
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
21cf2253eb
commit
f97c1e0c6e
@@ -404,7 +404,7 @@ static int inet_set_ifa(struct net_device *dev, struct in_ifaddr *ifa)
|
||||
in_dev_hold(in_dev);
|
||||
ifa->ifa_dev = in_dev;
|
||||
}
|
||||
if (LOOPBACK(ifa->ifa_local))
|
||||
if (ipv4_is_loopback(ifa->ifa_local))
|
||||
ifa->ifa_scope = RT_SCOPE_HOST;
|
||||
return inet_insert_ifa(ifa);
|
||||
}
|
||||
@@ -583,7 +583,7 @@ static __inline__ int inet_abc_len(__be32 addr)
|
||||
{
|
||||
int rc = -1; /* Something else, probably a multicast. */
|
||||
|
||||
if (ZERONET(addr))
|
||||
if (ipv4_is_zeronet(addr))
|
||||
rc = 0;
|
||||
else {
|
||||
__u32 haddr = ntohl(addr);
|
||||
|
Reference in New Issue
Block a user