Add INADDR_DUMMY from Linux 5.13 to netinet/in.h
authorJoseph Myers <joseph@codesourcery.com>
Thu, 5 Aug 2021 20:12:56 +0000 (20:12 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 5 Aug 2021 20:12:56 +0000 (20:12 +0000)
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.

inet/netinet/in.h

index ed21690..cee35ef 100644 (file)
@@ -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