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/fib_frontend.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/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index d90b42f3630c..ac6238a3b0fd 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -167,9 +167,9 @@ static inline unsigned __inet_dev_addr_type(const struct net_device *dev, | |||
167 | unsigned ret = RTN_BROADCAST; | 167 | unsigned ret = RTN_BROADCAST; |
168 | struct fib_table *local_table; | 168 | struct fib_table *local_table; |
169 | 169 | ||
170 | if (ZERONET(addr) || BADCLASS(addr)) | 170 | if (ipv4_is_zeronet(addr) || ipv4_is_badclass(addr)) |
171 | return RTN_BROADCAST; | 171 | return RTN_BROADCAST; |
172 | if (MULTICAST(addr)) | 172 | if (ipv4_is_multicast(addr)) |
173 | return RTN_MULTICAST; | 173 | return RTN_MULTICAST; |
174 | 174 | ||
175 | #ifdef CONFIG_IP_MULTIPLE_TABLES | 175 | #ifdef CONFIG_IP_MULTIPLE_TABLES |
@@ -710,7 +710,7 @@ void fib_add_ifaddr(struct in_ifaddr *ifa) | |||
710 | if (ifa->ifa_broadcast && ifa->ifa_broadcast != htonl(0xFFFFFFFF)) | 710 | if (ifa->ifa_broadcast && ifa->ifa_broadcast != htonl(0xFFFFFFFF)) |
711 | fib_magic(RTM_NEWROUTE, RTN_BROADCAST, ifa->ifa_broadcast, 32, prim); | 711 | fib_magic(RTM_NEWROUTE, RTN_BROADCAST, ifa->ifa_broadcast, 32, prim); |
712 | 712 | ||
713 | if (!ZERONET(prefix) && !(ifa->ifa_flags&IFA_F_SECONDARY) && | 713 | if (!ipv4_is_zeronet(prefix) && !(ifa->ifa_flags&IFA_F_SECONDARY) && |
714 | (prefix != addr || ifa->ifa_prefixlen < 32)) { | 714 | (prefix != addr || ifa->ifa_prefixlen < 32)) { |
715 | fib_magic(RTM_NEWROUTE, dev->flags&IFF_LOOPBACK ? RTN_LOCAL : | 715 | fib_magic(RTM_NEWROUTE, dev->flags&IFF_LOOPBACK ? RTN_LOCAL : |
716 | RTN_UNICAST, prefix, ifa->ifa_prefixlen, prim); | 716 | RTN_UNICAST, prefix, ifa->ifa_prefixlen, prim); |