public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/lld] Add INADDR_DUMMY from Linux 5.13 to netinet/in.h
@ 2021-08-16 17:13 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-16 17:13 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fb89489636766532902d4a02a08dbb72efed4faf

commit fb89489636766532902d4a02a08dbb72efed4faf
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Aug 5 20:12:56 2021 +0000

    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:
---
 inet/netinet/in.h | 3 +++
 1 file changed, 3 insertions(+)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-16 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 17:13 [glibc/maskray/lld] Add INADDR_DUMMY from Linux 5.13 to netinet/in.h Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).