aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-07-10 13:42:28 +0200
committerMicael Karlberg <[email protected]>2018-09-18 14:50:18 +0200
commit8936b71f13b37559600afb5536ff7d7878b9ab0e (patch)
treeb128f2ffac826378b624e2e5c635e7ce1f11e1ff /lib/kernel
parent9110ba256099e6fa55461fc4ca90da5ec4b2966b (diff)
downloadotp-8936b71f13b37559600afb5536ff7d7878b9ab0e.tar.gz
otp-8936b71f13b37559600afb5536ff7d7878b9ab0e.tar.bz2
otp-8936b71f13b37559600afb5536ff7d7878b9ab0e.zip
[socket-nif] Add support for socket (level ip) option multicast_loop
Added support for the IP option MULTICAST_LOOP. OTP-14831
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/test/socket_server.erl18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/kernel/test/socket_server.erl b/lib/kernel/test/socket_server.erl
index da5a2ca905..9c6ef47fbc 100644
--- a/lib/kernel/test/socket_server.erl
+++ b/lib/kernel/test/socket_server.erl
@@ -439,11 +439,21 @@ handler_init(Manager, ID, Peek, Sock) ->
{ok, Type} = socket:getopt(Sock, socket, type),
{ok, Proto} = socket:getopt(Sock, socket, protocol),
{ok, OOBI} = socket:getopt(Sock, socket, oobinline),
+ {ok, SndBuf} = socket:getopt(Sock, socket, sndbuf),
+ {ok, RcvBuf} = socket:getopt(Sock, socket, rcvbuf),
+ {ok, Linger} = socket:getopt(Sock, socket, linger),
+ {ok, ML} = socket:getopt(Sock, ip, multicast_loop),
i("got continue when: "
- "~n Domain: ~p"
- "~n Type: ~p"
- "~n Protocol: ~p"
- "~n OOBInline: ~p", [Domain, Type, Proto, OOBI]),
+ "~n (socket) Domain: ~p"
+ "~n (socket) Type: ~p"
+ "~n (socket) Protocol: ~p"
+ "~n (socket) OOBInline: ~p"
+ "~n (socket) SndBuf: ~p"
+ "~n (socket) RcvBuf: ~p"
+ "~n (socket) Linger: ~p"
+ "~n (ip) Multicast Loop: ~p",
+ [Domain, Type, Proto,
+ OOBI, SndBuf, RcvBuf, Linger, ML]),
%% socket:setopt(Sock, otp, debug, true),
handler_loop(#handler{peek = Peek,
manager = Manager,