]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: fix typo in mptcp_connect usage
authorDavide Caratti <dcaratti@redhat.com>
Wed, 2 Sep 2020 11:44:24 +0000 (13:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2020 21:12:44 +0000 (14:12 -0700)
commit01c5cd482406346d8c706029498e11af869ae7fe
tree499448850a7524ecfb1faff4fe1b1e5a18719a11
parent330620b09843d5bd2fd5af12a999d00b950f0d28
selftests: mptcp: fix typo in mptcp_connect usage

in mptcp_connect, 's' selects IPPROTO_MPTCP / IPPROTO_TCP as the value of
'protocol' in socket(), and 'm' switches between different send / receive
modes. Fix die_usage(): swap 'm' and 's' and add missing 'sendfile' mode.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/mptcp_connect.c