selftests: nettest: Add --{force,no}-bind-key-ifindex
authorLeonard Crestez <cdleonard@gmail.com>
Fri, 15 Oct 2021 07:26:06 +0000 (10:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Oct 2021 13:36:57 +0000 (14:36 +0100)
commit78a9cf6143e2d4fb4dd48dde529b24cd5b6bf0e0
treebbfa08adc354ad264d9816ee8817a7553991605e
parenta76c2315bec7afeb9bafe776fe532106fa0a8b05
selftests: nettest: Add --{force,no}-bind-key-ifindex

These options allow explicit control over the TCP_MD5SIG_FLAG_IFINDEX
flag instead of always setting it based on binding to an interface.

Do this by converting to getopt_long because nettest has too many
single-character flags already and getopt_long is widely used in
selftests.

Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/nettest.c