1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibC: Add IN_MULTICAST to in.h

This commit is contained in:
Peter Ross 2022-03-01 19:50:18 +11:00 committed by Andreas Kling
parent bfa7aad0f6
commit 54fa06e85c

View file

@ -41,6 +41,8 @@ static inline uint32_t ntohl(uint32_t value)
return htonl(value);
}
#define IN_MULTICAST(x) (((x)&0xf0000000) == 0xe0000000)
// NOTE: The IPv6 Addressing Scheme that we detect are documented in RFC# 2373.
// See: https://datatracker.ietf.org/doc/html/rfc2373