aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/ipv6.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index c0c019f72ba9..8b05c65415cb 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -384,6 +384,16 @@ static inline int ipv6_addr_v4mapped(const struct in6_addr *a)
384} 384}
385 385
386/* 386/*
387 * Check for a RFC 4843 ORCHID address
388 * (Overlay Routable Cryptographic Hash Identifiers)
389 */
390static inline int ipv6_addr_orchid(const struct in6_addr *a)
391{
392 return ((a->s6_addr32[0] & htonl(0xfffffff0))
393 == htonl(0x20010010));
394}
395
396/*
387 * find the first different bit between two addresses 397 * find the first different bit between two addresses
388 * length of address must be a multiple of 32bits 398 * length of address must be a multiple of 32bits
389 */ 399 */