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