summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorNikita V. Shirokov <tehnerd@fb.com>2018-08-30 07:51:53 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-09-01 01:35:59 +0200
commit1e215300f1384072c62459a1c194a08dbe05ff2c (patch)
treec6cf00bf6e1509ebc1e829952ff8712ce067baaa /samples
parent7296216776dbbe5094e218035debe1c0a5a3674a (diff)
downloadlinux-next-1e215300f1384072c62459a1c194a08dbe05ff2c.tar.gz
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')
0 files changed, 0 insertions, 0 deletions