diff options
author | Micael Karlberg <[email protected]> | 2018-07-12 11:22:53 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-18 14:50:18 +0200 |
commit | ca81f1d1602cf994fca9fcd61e892c76e4e2742c (patch) | |
tree | 0c13550d6ac34dec6bc0604f88c2ecc2863ba507 /lib/kernel/test/socket_server.erl | |
parent | 0122d2cafdb6f44c221796f1a6b2a5188dfb153d (diff) | |
download | otp-ca81f1d1602cf994fca9fcd61e892c76e4e2742c.tar.gz otp-ca81f1d1602cf994fca9fcd61e892c76e4e2742c.tar.bz2 otp-ca81f1d1602cf994fca9fcd61e892c76e4e2742c.zip |
[socket-nif] Add support for socket (level ip) option recvttl
Added support for the IP option RECVTTL.
OTP-14831
Diffstat (limited to 'lib/kernel/test/socket_server.erl')
-rw-r--r-- | lib/kernel/test/socket_server.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/kernel/test/socket_server.erl b/lib/kernel/test/socket_server.erl index 6a207a7b1b..ff8f6575a3 100644 --- a/lib/kernel/test/socket_server.erl +++ b/lib/kernel/test/socket_server.erl @@ -460,6 +460,8 @@ handler_init(Manager, ID, Peek, Sock) -> {ok, MLoop} = socket:getopt(Sock, ip, multicast_loop), {ok, MTTL} = socket:getopt(Sock, ip, multicast_ttl), NF = G(nodefrag), % raw only + RecvTOS = G(recvtos), + RecvTTL = G(recvttl), % not stream i("got continue when: " "~n (socket) Domain: ~p" "~n (socket) Type: ~p" @@ -474,11 +476,13 @@ handler_init(Manager, ID, Peek, Sock) -> "~n (ip) Multicast IF: ~p" "~n (ip) Multicast Loop: ~p" "~n (ip) Multicast TTL: ~p" - "~n (ip) NodeFrag: ~s", + "~n (ip) NodeFrag: ~s" + "~n (ip) RecvTOS: ~s" + "~n (ip) RecvTTL: ~s", [Domain, Type, Proto, OOBI, SndBuf, RcvBuf, Linger, MTU, MTUDisc, MALL, MIF, MLoop, MTTL, - NF]), + NF, RecvTOS, RecvTTL]), %% socket:setopt(Sock, otp, debug, true), handler_loop(#handler{peek = Peek, manager = Manager, |