bpf: add TCP_SAVE_SYN/TCP_SAVED_SYN sample program
authorNikita V. Shirokov <tehnerd@fb.com>
Thu, 30 Aug 2018 14:51:54 +0000 (07:51 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 31 Aug 2018 23:36:04 +0000 (01:36 +0200)
commitacb4ea9564152bba8b4c2d66f8c1ba21e7a94d90
tree99891913a1f8a3dd024e86c6002fe703e8425ffd
parent1e215300f1384072c62459a1c194a08dbe05ff2c
bpf: add TCP_SAVE_SYN/TCP_SAVED_SYN sample program

Sample program which shows TCP_SAVE_SYN/TCP_SAVED_SYN usage example:
bpf program which is doing TOS/TCLASS reflection (server would reply
with a same TOS/TCLASS as client).

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>
samples/bpf/Makefile
samples/bpf/tcp_tos_reflect_kern.c [new file with mode: 0644]