aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/gen_udp_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-05-22 16:21:58 +0200
committerLukas Larsson <[email protected]>2017-05-22 16:21:58 +0200
commit1d6ec21da2d91f4226fb42506299e782ccdb4644 (patch)
tree2542d1c7377ca8c1e1bd217c2f83c11ad807b876 /lib/kernel/test/gen_udp_SUITE.erl
parent05dce0f330c83278cb134c7235a5353ce4116307 (diff)
downloadotp-1d6ec21da2d91f4226fb42506299e782ccdb4644.tar.gz
otp-1d6ec21da2d91f4226fb42506299e782ccdb4644.tar.bz2
otp-1d6ec21da2d91f4226fb42506299e782ccdb4644.zip
kernel: Skip ipv6 tcs when cpiv6 is disabled
For some reason doing a gen_udp:open(0, [inet6,{ipv6_v6only,true}]) works on some systems where ipv6 is disabled. So instead we explicitly require the localhost ip to do the test at which seems to work better. ipv6 was disabled in sysctl using the line net.ipv6.conf.all.disable_ipv6=1 when this behaviour was found.
Diffstat (limited to 'lib/kernel/test/gen_udp_SUITE.erl')
-rw-r--r--lib/kernel/test/gen_udp_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl
index 1029d7ef0a..836e0c5a05 100644
--- a/lib/kernel/test/gen_udp_SUITE.erl
+++ b/lib/kernel/test/gen_udp_SUITE.erl
@@ -717,9 +717,9 @@ implicit_inet6(Config) when is_list(Config) ->
implicit_inet6(Host, Addr) ->
Active = {active,false},
- case gen_udp:open(0, [inet6,Active]) of
+ Loopback = {0,0,0,0,0,0,0,1},
+ case gen_udp:open(0, [inet6,Active,{ip, Loopback}]) of
{ok,S1} ->
- Loopback = {0,0,0,0,0,0,0,1},
io:format("~s ~p~n", ["::1",Loopback]),
implicit_inet6(S1, Active, Loopback),
ok = gen_udp:close(S1),