>From d8b15a06288dee0895bd6b51cbb81f3c696ba504 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 23 Jan 2019 20:06:12 +0000 Subject: [PATCH 10/22] netinet/in.h update following linux v4.20 IN_BADCLASS and IN_EXPERIMENTAL are changed and new macros are added for class-e addresses. linux commit 65cab850f0eeaa9180bd2e10a231964f33743edf --- include/netinet/in.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/netinet/in.h b/include/netinet/in.h index 192679a6..2f87e33f 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -168,8 +168,12 @@ uint16_t ntohs(uint16_t); #define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET) #define IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000) #define IN_MULTICAST(a) IN_CLASSD(a) -#define IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000) -#define IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000) +#define IN_MULTICAST_NET 0xe0000000 +#define IN_BADCLASS(a) ((((in_addr_t)(a)) == 0xffffffff) +#define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) +#define IN_CLASSE(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000) +#define IN_CLASSE_NET 0xffffffff +#define IN_CLASSE_NSHIFT 0 #define IN_LOOPBACKNET 127 -- 2.19.1