From: Linus Lüssing Date: Tue, 15 Feb 2011 13:19:20 +0000 (+0000) Subject: ipv6: Add IPv6 multicast address flag defines X-Git-Tag: v2.6.38-rc7~47^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ced1339612d1fa095459bd481f1d1f64f76f859;p=platform%2Fkernel%2Flinux-3.10.git ipv6: Add IPv6 multicast address flag defines This commit adds the missing IPv6 multicast address flag defines to complement the already existing multicast address scope defines and to be able to check these flags nicely in the future. Signed-off-by: Linus Lüssing Signed-off-by: David S. Miller --- diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4a3cd2c..96e50e0 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -89,6 +89,18 @@ #define IPV6_ADDR_SCOPE_GLOBAL 0x0e /* + * Addr flags + */ +#ifdef __KERNEL__ +#define IPV6_ADDR_MC_FLAG_TRANSIENT(a) \ + ((a)->s6_addr[1] & 0x10) +#define IPV6_ADDR_MC_FLAG_PREFIX(a) \ + ((a)->s6_addr[1] & 0x20) +#define IPV6_ADDR_MC_FLAG_RENDEZVOUS(a) \ + ((a)->s6_addr[1] & 0x40) +#endif + +/* * fragmentation header */