[PATCH bpf-next v8 4/4] selftests/bpf: Add mptcpify test
Matthieu Baerts
matthieu.baerts at tessares.net
Thu Aug 3 08:03:09 UTC 2023
Hi Geliang,
On 03/08/2023 09:30, Geliang Tang wrote:
> Implement a new test program mptcpify: if the family is AF_INET or
> AF_INET6, the type is SOCK_STREAM, and the protocol ID is 0 or
> IPPROTO_TCP, set it to IPPROTO_MPTCP. It will be hooked in
> update_socket_protocol().
>
> Extend the MPTCP test base, add a selftest test_mptcpify() for the
> mptcpify case. Open and load the mptcpify test prog to mptcpify the
> TCP sockets dynamically, then use start_server() and connect_to_fd()
> to create a TCP socket, but actually what's created is an MPTCP
> socket, which can be verified through the outputs of 'ss' and 'nstat'
> commands.
Thank you for the modifications!
For MPTCP related code, it looks good to me:
Reviewed-by: Matthieu Baerts <matthieu.baerts at tessares.net>
Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
More information about the Linux-security-module-archive
mailing list