From 5ff98f65a8a11ebe095f0bb08a0792541540677b Mon Sep 17 00:00:00 2001 From: meijian Date: Fri, 18 Oct 2024 09:46:08 +0800 Subject: [PATCH] netinet/in.h: fix LINKLOCAL macro bug Signed-off-by: meijian --- include/netinet/in.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netinet/in.h b/include/netinet/in.h index 154f785e2c7..a2e0e6ff665 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -201,7 +201,7 @@ ((a)->s6_addr[0] == 0xff) #define IN6_IS_ADDR_LINKLOCAL(a) \ - ((a)->s6_addr16[0] & HTONS(0xffc0) == HTONS(0xfe80)) + (((a)->s6_addr16[0] & HTONS(0xffc0)) == HTONS(0xfe80)) #define IN6_IS_ADDR_LOOPBACK(a) \ ((a)->s6_addr32[0] == 0 && \