aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-02-09 22:22:13 +0100
committerSzabolcs Nagy <nsz@port70.net>2015-02-09 22:22:13 +0100
commit70572dce07a631e2f818b34f5679c57eeebc9779 (patch)
treeefa8288f39c6a15010a2a8e902cab709a0359a02
parent339cc250f6dda06e7a26fcbcc66e3a1bbec2b494 (diff)
downloadmusl-70572dce07a631e2f818b34f5679c57eeebc9779.zip
musl-70572dce07a631e2f818b34f5679c57eeebc9779.tar.gz
musl-70572dce07a631e2f818b34f5679c57eeebc9779.tar.bz2
add new socket options SO_INCOMING_CPU, SO_ATTACH_BPF, SO_DETACH_BPF
these socket options are new in linux v3.19, introduced in commit 2c8c56e15df3d4c2af3d656e44feb18789f75837 and commit 89aa075832b0da4402acebd698d0411dcc82d03e with SO_INCOMING_CPU the cpu can be queried on which a socket is managed inside the kernel and optimize polling of large number of sockets accordingly. SO_ATTACH_BPF lets eBPF programs (created by the bpf syscall) to be attached to sockets.
-rw-r--r--include/sys/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index b911d6e..077fb3f 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -215,6 +215,10 @@ struct linger
#define SO_BUSY_POLL 46
#define SO_MAX_PACING_RATE 47
#define SO_BPF_EXTENSIONS 48
+#define SO_INCOMING_CPU 49
+#define SO_ATTACH_BPF 50
+#define SO_DETACH_BPF SO_DETACH_FILTER
+
#ifndef SOL_SOCKET
#define SOL_SOCKET 1