selftests/net: l2_tos_ttl_inherit.sh: Set IPv6 addresses with "nodad".

The ping command can run before DAD completes. In that case, ping may
fail and break the selftest.

We don't need DAD here since we're working on isolated device pairs.

Fixes: b690842d12 ("selftests/net: test l2 tunnel TOS/TTL inheriting")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
Guillaume Nault 2023-01-08 16:45:41 +01:00 committed by Paolo Abeni
parent 2ea26b4de6
commit e59370b2e9
1 changed files with 4 additions and 4 deletions

View File

@ -137,8 +137,8 @@ setup() {
if [ "$type" = "gre" ]; then if [ "$type" = "gre" ]; then
type="ip6gretap" type="ip6gretap"
fi fi
ip addr add fdd1:ced0:5d88:3fce::1/64 dev veth0 ip addr add fdd1:ced0:5d88:3fce::1/64 dev veth0 nodad
$ns ip addr add fdd1:ced0:5d88:3fce::2/64 dev veth1 $ns ip addr add fdd1:ced0:5d88:3fce::2/64 dev veth1 nodad
ip link add name tep0 type $type $local_addr1 \ ip link add name tep0 type $type $local_addr1 \
remote fdd1:ced0:5d88:3fce::2 tos $test_tos ttl $test_ttl \ remote fdd1:ced0:5d88:3fce::2 tos $test_tos ttl $test_ttl \
$vxlan $geneve $vxlan $geneve
@ -170,8 +170,8 @@ setup() {
ip addr add 198.19.0.1/24 brd + dev ${parent}0 ip addr add 198.19.0.1/24 brd + dev ${parent}0
$ns ip addr add 198.19.0.2/24 brd + dev ${parent}1 $ns ip addr add 198.19.0.2/24 brd + dev ${parent}1
elif [ "$inner" = "6" ]; then elif [ "$inner" = "6" ]; then
ip addr add fdd4:96cf:4eae:443b::1/64 dev ${parent}0 ip addr add fdd4:96cf:4eae:443b::1/64 dev ${parent}0 nodad
$ns ip addr add fdd4:96cf:4eae:443b::2/64 dev ${parent}1 $ns ip addr add fdd4:96cf:4eae:443b::2/64 dev ${parent}1 nodad
fi fi
} }