summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2021-04-13 14:18:03 -0700
committerGeorge Burgess IV <gbiv@google.com>2021-04-14 03:25:18 +0000
commit50b8baff4f2fe509d5fcc87b02b27b85f6b2f3bb (patch)
tree97ca154233d1af3c6810e549280593a3a700d886
parenteaf3e42071dd2b56431a6c0e9ad29fa6cc90f9d1 (diff)
downloadx86_64-linux-glibc2.17-4.8-50b8baff4f2fe509d5fcc87b02b27b85f6b2f3bb.tar.gz
glibc: allow use of SO_REUSEPORT
It seems that all users should have kernels which support this flag. Bug: 159148705 Test: local SO_REUSEPORT program Works On My Machine Change-Id: Ib0fbc0d1bff659cd6d064c004732148594fe56be
-rw-r--r--sysroot-patches/glibc-2.17-enable-so-reuse-port.patch16
-rw-r--r--sysroot/usr/include/asm-generic/socket.h2
2 files changed, 17 insertions, 1 deletions
diff --git a/sysroot-patches/glibc-2.17-enable-so-reuse-port.patch b/sysroot-patches/glibc-2.17-enable-so-reuse-port.patch
new file mode 100644
index 0000000..700c6a1
--- /dev/null
+++ b/sysroot-patches/glibc-2.17-enable-so-reuse-port.patch
@@ -0,0 +1,16 @@
+b/159148705 . All of our supported users have Linux 3.9+ at this point, so
+SO_REUSEPORT should be made available to anyone who wants to use it.
+
+diff --git a/sysroot/usr/include/asm-generic/socket.h b/sysroot/usr/include/asm-generic/socket.h
+index 2d32d07..316f06c 100644
+--- a/sysroot/usr/include/asm-generic/socket.h
++++ b/sysroot/usr/include/asm-generic/socket.h
+@@ -22,7 +22,7 @@
+ #define SO_PRIORITY 12
+ #define SO_LINGER 13
+ #define SO_BSDCOMPAT 14
+-/* To add :#define SO_REUSEPORT 15 */
++#define SO_REUSEPORT 15
+
+ #ifndef SO_PASSCRED /* powerpc only differs in these */
+ #define SO_PASSCRED 16
diff --git a/sysroot/usr/include/asm-generic/socket.h b/sysroot/usr/include/asm-generic/socket.h
index 2d32d07..316f06c 100644
--- a/sysroot/usr/include/asm-generic/socket.h
+++ b/sysroot/usr/include/asm-generic/socket.h
@@ -22,7 +22,7 @@
#define SO_PRIORITY 12
#define SO_LINGER 13
#define SO_BSDCOMPAT 14
-/* To add :#define SO_REUSEPORT 15 */
+#define SO_REUSEPORT 15
#ifndef SO_PASSCRED /* powerpc only differs in these */
#define SO_PASSCRED 16