diff options
author | Joe Perches <joe@perches.com> | 2007-12-16 16:45:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:15 -0500 |
commit | f97c1e0c6ebdb606c97b6cb5e837c6110ac5a961 (patch) | |
tree | 2af3da0114614a127099f9ab2ef706f676faa376 /net/ipv4/devinet.c | |
parent | 21cf2253ebcf070bc307e0b56d696a2519c75cb4 (diff) |
[IPV4] net/ipv4: Use ipv4_is_<type>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 1f21f4a2df86..44cb252d2f61 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -404,7 +404,7 @@ static int inet_set_ifa(struct net_device *dev, struct in_ifaddr *ifa) | |||
404 | in_dev_hold(in_dev); | 404 | in_dev_hold(in_dev); |
405 | ifa->ifa_dev = in_dev; | 405 | ifa->ifa_dev = in_dev; |
406 | } | 406 | } |
407 | if (LOOPBACK(ifa->ifa_local)) | 407 | if (ipv4_is_loopback(ifa->ifa_local)) |
408 | ifa->ifa_scope = RT_SCOPE_HOST; | 408 | ifa->ifa_scope = RT_SCOPE_HOST; |
409 | return inet_insert_ifa(ifa); | 409 | return inet_insert_ifa(ifa); |
410 | } | 410 | } |
@@ -583,7 +583,7 @@ static __inline__ int inet_abc_len(__be32 addr) | |||
583 | { | 583 | { |
584 | int rc = -1; /* Something else, probably a multicast. */ | 584 | int rc = -1; /* Something else, probably a multicast. */ |
585 | 585 | ||
586 | if (ZERONET(addr)) | 586 | if (ipv4_is_zeronet(addr)) |
587 | rc = 0; | 587 | rc = 0; |
588 | else { | 588 | else { |
589 | __u32 haddr = ntohl(addr); | 589 | __u32 haddr = ntohl(addr); |