From: Joseph Myers Date: Thu, 5 Aug 2021 20:12:56 +0000 (+0000) Subject: Add INADDR_DUMMY from Linux 5.13 to netinet/in.h X-Git-Tag: glibc-2.35~601 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb89489636766532902d4a02a08dbb72efed4faf;p=thirdparty%2Fglibc.git Add INADDR_DUMMY from Linux 5.13 to netinet/in.h Linux 5.13 adds an INADDR_DUMMY definition; add a corresponding definition to glibc's netinet/in.h. (This isn't strictly a new kernel interface, rather a value defined in RFC 7600.) Tested for x86_64. --- diff --git a/inet/netinet/in.h b/inet/netinet/in.h index ed21690afb3..cee35efec9f 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -196,6 +196,9 @@ enum #define INADDR_BROADCAST ((in_addr_t) 0xffffffff) /* Address indicating an error return. */ #define INADDR_NONE ((in_addr_t) 0xffffffff) +/* Dummy address for source of ICMPv6 errors converted to IPv4 (RFC + 7600). */ +#define INADDR_DUMMY ((in_addr_t) 0xc0000008) /* Network number for local host loopback. */ #define IN_LOOPBACKNET 127