diff options
author | Linus Lüssing <linus.luessing@web.de> | 2011-02-15 14:19:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 19:07:27 +0100 |
commit | 5ced1339612d1fa095459bd481f1d1f64f76f859 (patch) | |
tree | 999946350340921be60687fcdbc3381ea6750c12 /include/net/ipv6.h | |
parent | bridge: Add missing ntohs()s for MLDv2 report parsing (diff) | |
download | linux-5ced1339612d1fa095459bd481f1d1f64f76f859.tar.xz linux-5ced1339612d1fa095459bd481f1d1f64f76f859.zip |
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 <linus.luessing@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4a3cd2cd2f5e..96e50e0ce3ca 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 */ |