diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibC/netinet/in.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/netinet/in.h b/Userland/Libraries/LibC/netinet/in.h index c31dfe01cf..58391c18a5 100644 --- a/Userland/Libraries/LibC/netinet/in.h +++ b/Userland/Libraries/LibC/netinet/in.h @@ -58,4 +58,8 @@ static inline uint32_t ntohl(uint32_t value) #define IN6_IS_ADDR_LINKLOCAL(addr) \ (((addr)->s6_addr[0] == 0xfe) && (((addr)->s6_addr[1] & 0xc0) == 0x80)) +// RFC# 2373 - 2.7 Multicast Addresses +#define IN6_IS_ADDR_MULTICAST(addr) \ + ((addr)->s6_addr[0] == 0xff) + __END_DECLS |