lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 9 Aug 2022 15:10:02 +0200
From:   Jiri Pirko <>
To:     Ido Schimmel <>
Subject: Re: [PATCH net] selftests: forwarding: Fix failing tests with old

Tue, Aug 09, 2022 at 01:33:20PM CEST, wrote:
>The custom multipath hash tests use mausezahn in order to test how
>changes in various packet fields affect the packet distribution across
>the available nexthops.
>The tool uses the libnet library for various low-level packet
>construction and injection. The library started using the
>"SO_BINDTODEVICE" socket option for IPv6 sockets in version 1.1.6 and
>for IPv4 sockets in version 1.2.
>When the option is not set, packets are not routed according to the
>table associated with the VRF master device and tests fail.
>Fix this by prefixing the command with "ip vrf exec", which will cause
>the route lookup to occur in the VRF routing table. This makes the tests
>pass regardless of the libnet library version.
>Fixes: 511e8db54036 ("selftests: forwarding: Add test for custom multipath hash")
>Fixes: 185b0c190bb6 ("selftests: forwarding: Add test for custom multipath hash with IPv4 GRE")
>Fixes: b7715acba4d3 ("selftests: forwarding: Add test for custom multipath hash with IPv6 GRE")
>Reported-by: Ivan Vecera <>
>Tested-by: Ivan Vecera <>
>Signed-off-by: Ido Schimmel <>
>Reviewed-by: Amit Cohen <>
> .../net/forwarding/   | 24 ++++++++++++-------
> .../forwarding/   | 24 ++++++++++++-------
> .../           | 24 ++++++++++++-------
> 3 files changed, 48 insertions(+), 24 deletions(-)
>diff --git a/tools/testing/selftests/net/forwarding/ b/tools/testing/selftests/net/forwarding/
>index a15d21dc035a..56eb83d1a3bd 100755
>--- a/tools/testing/selftests/net/forwarding/
>+++ b/tools/testing/selftests/net/forwarding/
>@@ -181,37 +181,43 @@ ping_ipv6()
> send_src_ipv4()
> {
>-	$MZ $h1 -q -p 64 -A "" -B \
>+	ip vrf exec v$h1 $MZ $h1 -q -p 64 \

Not directly related to this, but I was wondering, if it would be
possible to use $IP and allow user to replace the system-wide "ip" for
testing purposes...

Powered by blists - more mailing lists