public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Add IPPROTO_L2TP from Linux 6.1 to netinet/in.h
@ 2023-01-09 21:50 Joseph Myers
  2023-01-17 17:49 ` Ping " Joseph Myers
  2023-01-17 20:07 ` Adhemerval Zanella Netto
  0 siblings, 2 replies; 3+ messages in thread
From: Joseph Myers @ 2023-01-09 21:50 UTC (permalink / raw)
  To: libc-alpha

Linux 6.1 adds a define IPPROTO_L2TP to its include/uapi/linux/in.h
(not strictly a new constant, since it's moved from
include/uapi/linux/l2tp.h).  Add this constant to glibc's
netinet/in.h.

Tested for x86_64.

diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index 858652cc37..60deab2f99 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -81,6 +81,8 @@ enum
 #define IPPROTO_PIM		IPPROTO_PIM
     IPPROTO_COMP = 108,	   /* Compression Header Protocol.  */
 #define IPPROTO_COMP		IPPROTO_COMP
+    IPPROTO_L2TP = 115,	   /* Layer 2 Tunnelling Protocol.  */
+#define IPPROTO_L2TP		IPPROTO_L2TP
     IPPROTO_SCTP = 132,	   /* Stream Control Transmission Protocol.  */
 #define IPPROTO_SCTP		IPPROTO_SCTP
     IPPROTO_UDPLITE = 136, /* UDP-Lite protocol.  */

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-17 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09 21:50 Add IPPROTO_L2TP from Linux 6.1 to netinet/in.h Joseph Myers
2023-01-17 17:49 ` Ping " Joseph Myers
2023-01-17 20:07 ` Adhemerval Zanella Netto

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).