aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/ipv4/tcp_fastopen.c
diff options
context:
space:
mode:
authorLorenz Bauer <lmb@cloudflare.com>2020-08-21 11:29:48 +0100
committerAlexei Starovoitov <ast@kernel.org>2020-08-21 15:16:12 -0700
commitbb23c0e1c57f3b40c8d2713401c1b42df911d424 (patch)
tree50361f2ed977f724fc78f240c2a01df9f130f87f /net/ipv4/tcp_fastopen.c
parentbpf: sockmap: Allow update from BPF (diff)
downloadwireguard-linux-bb23c0e1c57f3b40c8d2713401c1b42df911d424.tar.xz
wireguard-linux-bb23c0e1c57f3b40c8d2713401c1b42df911d424.zip
selftests: bpf: Test sockmap update from BPF
Add a test which copies a socket from a sockmap into another sockmap or sockhash. This excercises bpf_map_update_elem support from BPF context. Compare the socket cookies from source and destination to ensure that the copy succeeded. Also check that the verifier rejects map_update from unsafe contexts. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20200821102948.21918-7-lmb@cloudflare.com
Diffstat (limited to 'net/ipv4/tcp_fastopen.c')
0 files changed, 0 insertions, 0 deletions