summaryrefslogtreecommitdiffstats
path: root/samples/bpf/tcp_tos_reflect_kern.c
diff options
context:
space:
mode:
authorNikita V. Shirokov2018-08-30 16:51:53 +0200
committerDaniel Borkmann2018-09-01 01:35:59 +0200
commit1e215300f1384072c62459a1c194a08dbe05ff2c (patch)
treec6cf00bf6e1509ebc1e829952ff8712ce067baaa /samples/bpf/tcp_tos_reflect_kern.c
parentxdp: remove redundant variable 'headroom' (diff)
downloadkernel-qcow2-linux-1e215300f1384072c62459a1c194a08dbe05ff2c.tar.gz
kernel-qcow2-linux-1e215300f1384072c62459a1c194a08dbe05ff2c.tar.xz
kernel-qcow2-linux-1e215300f1384072c62459a1c194a08dbe05ff2c.zip
bpf: add TCP_SAVE_SYN/TCP_SAVED_SYN options for bpf_(set|get)sockopt
Adding support for two new bpf get/set sockopts: TCP_SAVE_SYN (set) and TCP_SAVED_SYN (get). This would allow for bpf program to build logic based on data from ingress SYN packet (e.g. doing tcp's tos/ tclass reflection (see sample prog)) and do it transparently from userspace program point of view. Signed-off-by: Nikita V. Shirokov <tehnerd@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/tcp_tos_reflect_kern.c')
0 files changed, 0 insertions, 0 deletions