bdc76f
commit 38b0593e9a862c3b35392a0f5b202696b8116aa3
bdc76f
Author: Tobias Klauser <tklauser@distanz.ch>
bdc76f
Date:   Tue Aug 21 17:22:53 2018 +0000
bdc76f
bdc76f
    Add PF_XDP, AF_XDP and SOL_XDP from Linux 4.18 to bits/socket.h.
bdc76f
    
bdc76f
    This patch adds the PF_XDP, AF_XDP and SOL_XDP macros from Linux 4.18 to
bdc76f
    sysdeps/unix/sysv/linux/bits/socket.h.
bdc76f
    
bdc76f
            * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
bdc76f
            (PF_XDP): New macro.
bdc76f
            (AF_XDP): New macro.
bdc76f
            (SOL_XDP): New macro.
bdc76f
bdc76f
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
bdc76f
index fa409f0fabc22d33..c3fbb2110296273c 100644
bdc76f
--- a/sysdeps/unix/sysv/linux/bits/socket.h
bdc76f
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
bdc76f
@@ -85,7 +85,8 @@ typedef __socklen_t socklen_t;
bdc76f
 #define PF_KCM		41	/* Kernel Connection Multiplexor.  */
bdc76f
 #define PF_QIPCRTR	42	/* Qualcomm IPC Router.  */
bdc76f
 #define PF_SMC		43	/* SMC sockets.  */
bdc76f
-#define PF_MAX		44	/* For now..  */
bdc76f
+#define PF_XDP		44	/* XDP sockets.  */
bdc76f
+#define PF_MAX		45	/* For now..  */
bdc76f
 
bdc76f
 /* Address families.  */
bdc76f
 #define AF_UNSPEC	PF_UNSPEC
bdc76f
@@ -135,6 +136,7 @@ typedef __socklen_t socklen_t;
bdc76f
 #define AF_KCM		PF_KCM
bdc76f
 #define AF_QIPCRTR	PF_QIPCRTR
bdc76f
 #define AF_SMC		PF_SMC
bdc76f
+#define AF_XDP		PF_XDP
bdc76f
 #define AF_MAX		PF_MAX
bdc76f
 
bdc76f
 /* Socket level values.  Others are defined in the appropriate headers.
bdc76f
@@ -164,6 +166,7 @@ typedef __socklen_t socklen_t;
bdc76f
 #define SOL_NFC		280
bdc76f
 #define SOL_KCM		281
bdc76f
 #define SOL_TLS		282
bdc76f
+#define SOL_XDP		283
bdc76f
 
bdc76f
 /* Maximum queue length specifiable by listen.  */
bdc76f
 #define SOMAXCONN	128