nettest: Add support for TCP_MD5 extensions
authorDavid Ahern <dsahern@gmail.com>
Mon, 30 Dec 2019 22:14:31 +0000 (14:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2020 23:51:22 +0000 (15:51 -0800)
commiteb09cf03b9bde3a08015b46119d0f594b250001f
treef5ec83dc706e32c7b0411b7ea4f0e2bf5d268bdd
parent1bfb45d860d8360322656131eac51772fec6fc8c
nettest: Add support for TCP_MD5 extensions

Update nettest to implement TCP_MD5SIG_EXT for a prefix and a device.

Add a new option, -m, to specify a prefix and length to use with MD5
auth. The device option comes from the existing -d option. If either
are set and MD5 auth is requested, TCP_MD5SIG_EXT is used instead of
TCP_MD5SIG.

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