Hi Kuniyuki, On 21/12/2023 02:28, Kuniyuki Iwashima wrote: > This commit adds a sample selftest to demonstrate how we can use > bpf_sk_assign_tcp_reqsk() as the backend of SYN Proxy. (...) > diff --git a/tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c b/tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c > new file mode 100644 > index 000000000000..ec5ea2c85119 > --- /dev/null > +++ b/tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c > @@ -0,0 +1,154 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* Copyright Amazon.com Inc. or its affiliates. */ > + > +#define _GNU_SOURCE > +#include <sched.h> > +#include <stdlib.h> > +#include <net/if.h> > + > +#include "test_progs.h" > +#include "cgroup_helpers.h" > +#include "network_helpers.h" > +#include "test_tcp_custom_syncookie.skel.h" > + > +#ifndef IPPROTO_MPTCP > +#define IPPROTO_MPTCP 262 > +#endif A small detail if you need to send a new version: you can remove this now that MPTCP support has been dropped. If no new version is needed, that's OK to leave it, it doesn't hurt. Cheers, Matt -- Sponsored by the NGI0 Core fund.