diff options
author | Petar Penkov <ppenkov@google.com> | 2019-07-29 09:59:15 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-07-30 21:03:05 -0700 |
commit | 70d66244317e958092e9c971b08dd5b7fd29d9cb (patch) | |
tree | ce2f9693389e7084cdf245f1a39e3787dcfccdb2 /tools | |
parent | 9349d600fb6a1ca0aaeb515523e1bb5409483d76 (diff) | |
download | linux-70d66244317e958092e9c971b08dd5b7fd29d9cb.tar.gz linux-70d66244317e958092e9c971b08dd5b7fd29d9cb.tar.bz2 linux-70d66244317e958092e9c971b08dd5b7fd29d9cb.zip |
bpf: add bpf_tcp_gen_syncookie helper
This helper function allows BPF programs to try to generate SYN
cookies, given a reference to a listener socket. The function works
from XDP and with an skb context since bpf_skc_lookup_tcp can lookup a
socket in both cases.
Signed-off-by: Petar Penkov <ppenkov@google.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions