aboutsummaryrefslogtreecommitdiff
path: root/inet
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2021-08-05 20:12:56 +0000
committerJoseph Myers <joseph@codesourcery.com>2021-08-05 20:12:56 +0000
commitfb89489636766532902d4a02a08dbb72efed4faf (patch)
treee415a4afaaa93e946a2274cf055e97d1854436c6 /inet
parent505a964ae00eb6d24144d070cb7fe9fbab6d1393 (diff)
downloadglibc-fb89489636766532902d4a02a08dbb72efed4faf.tar
glibc-fb89489636766532902d4a02a08dbb72efed4faf.tar.gz
glibc-fb89489636766532902d4a02a08dbb72efed4faf.tar.bz2
glibc-fb89489636766532902d4a02a08dbb72efed4faf.zip
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.
Diffstat (limited to 'inet')
-rw-r--r--inet/netinet/in.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index ed21690afb..cee35efec9 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