aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/addrconf.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-12-16 16:43:24 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:14 -0500
commit3db8cda362dced00caf19865ffda3fa1028c59bc (patch)
treee4c31fc97649169090731a447782b6f8027b7f1d /include/net/addrconf.h
parent2658fa803111dae1353602e7f586de8e537803e2 (diff)
[IPV4] include/net: Use ipv4_is_<type>
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r--include/net/addrconf.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index c56827da0dee..1c3a5602990e 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -252,10 +252,12 @@ static inline int ipv6_addr_is_ll_all_routers(const struct in6_addr *addr)
252 252
253static inline int ipv6_isatap_eui64(u8 *eui, __be32 addr) 253static inline int ipv6_isatap_eui64(u8 *eui, __be32 addr)
254{ 254{
255 eui[0] = (ZERONET(addr) || PRIVATE_10(addr) || LOOPBACK(addr) || 255 eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) ||
256 LINKLOCAL_169(addr) || PRIVATE_172(addr) || TEST_192(addr) || 256 ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) ||
257 ANYCAST_6TO4(addr) || PRIVATE_192(addr) || TEST_198(addr) || 257 ipv4_is_private_172(addr) || ipv4_is_test_192(addr) ||
258 MULTICAST(addr) || BADCLASS(addr)) ? 0x00 : 0x02; 258 ipv4_is_anycast_6to4(addr) || ipv4_is_private_192(addr) ||
259 ipv4_is_test_198(addr) || ipv4_is_multicast(addr) ||
260 ipv4_is_badclass(addr)) ? 0x00 : 0x02;
259 eui[1] = 0; 261 eui[1] = 0;
260 eui[2] = 0x5E; 262 eui[2] = 0x5E;
261 eui[3] = 0xFE; 263 eui[3] = 0xFE;