]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fib_nexthops: Fix wrong mausezahn invocation
authorIdo Schimmel <idosch@nvidia.com>
Thu, 7 Jan 2021 14:48:24 +0000 (16:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Jan 2021 02:47:19 +0000 (18:47 -0800)
commit15af99a08127c85f8bcf05d7c1a589fb63bc40c2
tree01269ace975a9c004a87518158f46f7075239ed3
parent60652557150140b7af24cf2d2072ecbb685ef93f
selftests: fib_nexthops: Fix wrong mausezahn invocation

For IPv6 traffic, mausezahn needs to be invoked with '-6'. Otherwise an
error is returned:

 # ip netns exec me mausezahn veth1 -B 2001:db8:101::2 -A 2001:db8:91::1 -c 0 -t tcp "dp=1-1023, flags=syn"
 Failed to set source IPv4 address. Please check if source is set to a valid IPv4 address.
  Invalid command line parameters!

Fixes: 6e6fe6f0d2bd ("selftests: Add torture tests to nexthop tests")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_nexthops.sh