diff options
author | Lorenz Bauer <lmb@cloudflare.com> | 2019-03-22 02:54:02 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-03-22 02:59:10 +0100 |
commit | 399040847084a69f345e0a52fd62f04654e0fce3 (patch) | |
tree | 6196d57566bf6831d40a83ca95f935b8c11ad167 /tools/include | |
parent | bpf: add skc_lookup_tcp helper (diff) | |
download | linux-399040847084a69f345e0a52fd62f04654e0fce3.tar.xz linux-399040847084a69f345e0a52fd62f04654e0fce3.zip |
bpf: add helper to check for a valid SYN cookie
Using bpf_skc_lookup_tcp it's possible to ascertain whether a packet
belongs to a known connection. However, there is one corner case: no
sockets are created if SYN cookies are active. This means that the final
ACK in the 3WHS is misclassified.
Using the helper, we can look up the listening socket via
bpf_skc_lookup_tcp and then check whether a packet is a valid SYN
cookie ACK.
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions