Skip to content

Commit e59370b

Browse files
Guillaume NaultPaolo Abeni
authored andcommitted
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: b690842 ("selftests/net: test l2 tunnel TOS/TTL inheriting") Signed-off-by: Guillaume Nault <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 2ea26b4 commit e59370b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/testing/selftests/net/l2_tos_ttl_inherit.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ setup() {
137137
if [ "$type" = "gre" ]; then
138138
type="ip6gretap"
139139
fi
140-
ip addr add fdd1:ced0:5d88:3fce::1/64 dev veth0
141-
$ns ip addr add fdd1:ced0:5d88:3fce::2/64 dev veth1
140+
ip addr add fdd1:ced0:5d88:3fce::1/64 dev veth0 nodad
141+
$ns ip addr add fdd1:ced0:5d88:3fce::2/64 dev veth1 nodad
142142
ip link add name tep0 type $type $local_addr1 \
143143
remote fdd1:ced0:5d88:3fce::2 tos $test_tos ttl $test_ttl \
144144
$vxlan $geneve
@@ -170,8 +170,8 @@ setup() {
170170
ip addr add 198.19.0.1/24 brd + dev ${parent}0
171171
$ns ip addr add 198.19.0.2/24 brd + dev ${parent}1
172172
elif [ "$inner" = "6" ]; then
173-
ip addr add fdd4:96cf:4eae:443b::1/64 dev ${parent}0
174-
$ns ip addr add fdd4:96cf:4eae:443b::2/64 dev ${parent}1
173+
ip addr add fdd4:96cf:4eae:443b::1/64 dev ${parent}0 nodad
174+
$ns ip addr add fdd4:96cf:4eae:443b::2/64 dev ${parent}1 nodad
175175
fi
176176
}
177177

0 commit comments

Comments
 (0)