Skip to content

Commit

Permalink
LibC: Add IN6_IS_ADDR_MULTICAST
Browse files Browse the repository at this point in the history
  • Loading branch information
timschumi authored and awesomekling committed May 5, 2022
1 parent 0ce43fa commit defe7b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Userland/Libraries/LibC/netinet/in.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit defe7b4

Please sign in to comment.