diff options
author | Nikita V. Shirokov <tehnerd@fb.com> | 2018-08-30 16:51:53 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-09-01 01:35:59 +0200 |
commit | 1e215300f1384072c62459a1c194a08dbe05ff2c (patch) | |
tree | c6cf00bf6e1509ebc1e829952ff8712ce067baaa /samples | |
parent | xdp: remove redundant variable 'headroom' (diff) | |
download | linux-1e215300f1384072c62459a1c194a08dbe05ff2c.tar.xz 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')
0 files changed, 0 insertions, 0 deletions