1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibC: Add IN6_IS_ADDR_MULTICAST

This commit is contained in:
Tim Schumacher 2022-05-02 20:15:58 +02:00 committed by Andreas Kling
parent 0ce43fae9c
commit defe7b4ecc

View file

@ -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