aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/addrconf.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 1ba4e5bf5801..8317c1bcd86c 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -233,20 +233,7 @@ static inline int ipv6_addr_is_ll_all_routers(const struct in6_addr *addr)
233 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0); 233 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0);
234} 234}
235 235
236static inline int ipv6_isatap_eui64(u8 *eui, __be32 addr) 236extern int __ipv6_isatap_ifid(u8 *eui, __be32 addr);
237{
238 eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) ||
239 ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) ||
240 ipv4_is_private_172(addr) || ipv4_is_test_192(addr) ||
241 ipv4_is_anycast_6to4(addr) || ipv4_is_private_192(addr) ||
242 ipv4_is_test_198(addr) || ipv4_is_multicast(addr) ||
243 ipv4_is_lbcast(addr)) ? 0x00 : 0x02;
244 eui[1] = 0;
245 eui[2] = 0x5E;
246 eui[3] = 0xFE;
247 memcpy (eui+4, &addr, 4);
248 return 0;
249}
250 237
251static inline int ipv6_addr_is_isatap(const struct in6_addr *addr) 238static inline int ipv6_addr_is_isatap(const struct in6_addr *addr)
252{ 239{