summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/netinet
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-05-02 20:15:58 +0200
committerAndreas Kling <kling@serenityos.org>2022-05-05 20:47:38 +0200
commitdefe7b4ecc0ecc0c7bcd09022b48fb1a56405807 (patch)
treeb8206bebec87bf4ae92a8fa620187957ecc762f4 /Userland/Libraries/LibC/netinet
parent0ce43fae9c947c2f772da3b15792fce6735c39ad (diff)
downloadserenity-defe7b4ecc0ecc0c7bcd09022b48fb1a56405807.zip
LibC: Add IN6_IS_ADDR_MULTICAST
Diffstat (limited to 'Userland/Libraries/LibC/netinet')
-rw-r--r--Userland/Libraries/LibC/netinet/in.h4
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