aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-07-24 16:40:55 +0200
committerMicael Karlberg <[email protected]>2018-09-18 14:50:18 +0200
commit00a2425bde77ddb9ae4c03b8c4e5470064773981 (patch)
treefe118b4be3b1ea5c2f61e9e1ad3cb7cc46fea276 /lib
parentb9237c96b2b86c82bb128625cc532b3528222560 (diff)
downloadotp-00a2425bde77ddb9ae4c03b8c4e5470064773981.tar.gz
otp-00a2425bde77ddb9ae4c03b8c4e5470064773981.tar.bz2
otp-00a2425bde77ddb9ae4c03b8c4e5470064773981.zip
[socket-nif] Add support for socket (level ip) option recverr
Added support for the IP socket option RECVERR. To actually make use of this option, we need the recvmsg function, which we don't have yet. Baby steps. OTP-14831.
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/test/socket_server.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kernel/test/socket_server.erl b/lib/kernel/test/socket_server.erl
index 54e9244d19..43f6f5ac75 100644
--- a/lib/kernel/test/socket_server.erl
+++ b/lib/kernel/test/socket_server.erl
@@ -636,6 +636,7 @@ handler_init(Manager, ID, Peek, Sock) ->
MLoop4 = GIP4(multicast_loop),
MTTL = GIP4(multicast_ttl),
NF = GIP4(nodefrag), % raw only
+ RecvErr4 = GIP4(recverr),
RecvIF = GIP4(recvif), % Only dgram and raw (and FreeBSD)
RecvOPTS = GIP4(recvopts), % Not stream
RecvTOS = GIP4(recvtos),
@@ -675,6 +676,7 @@ handler_init(Manager, ID, Peek, Sock) ->
"~n (ip) Multicast Loop: ~s"
"~n (ip) Multicast TTL: ~s"
"~n (ip) Node Frag: ~s"
+ "~n (ip) Recv Err: ~s"
"~n (ip) Recv IF: ~s"
"~n (ip) Recv OPTS: ~s"
"~n (ip) Recv TOS: ~s"
@@ -695,7 +697,7 @@ handler_init(Manager, ID, Peek, Sock) ->
RcvBuf, RcvLW, RcvTO, SndBuf, SndLW, SndTO,
Linger, Timestamp,
FreeBind, MTU, MTUDisc, MALL, MIF4, MLoop4, MTTL,
- NF, RecvIF, RecvOPTS, RecvTOS, RecvTTL,
+ NF, RecvErr4, RecvIF, RecvOPTS, RecvTOS, RecvTTL,
MHops, MIF6, MLoop6, RecvPktInfo,
RtHdr, AuthHdr, HopLimit, HopOpts, DstOpts, FlowInfo,
UHops]),