diff options
author | Ingela Anderton Andin <[email protected]> | 2017-08-24 10:24:10 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-08-24 10:24:10 +0200 |
commit | 7dca6bf8cc7f291a6c1cb4928255da88afa131b1 (patch) | |
tree | 69bd94455d96e3be7758503e80790e568223a5d7 /lib/ssl/src/dtls_socket.erl | |
parent | fbf740d68600b59dc5fa7bd76d0aa0d019e81a75 (diff) | |
parent | ed70ed1cbcfb01a8fee4ceac83c47afd78777387 (diff) | |
download | otp-7dca6bf8cc7f291a6c1cb4928255da88afa131b1.tar.gz otp-7dca6bf8cc7f291a6c1cb4928255da88afa131b1.tar.bz2 otp-7dca6bf8cc7f291a6c1cb4928255da88afa131b1.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/src/dtls_socket.erl')
-rw-r--r-- | lib/ssl/src/dtls_socket.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_socket.erl b/lib/ssl/src/dtls_socket.erl index fbbd479428..5f854fbb4b 100644 --- a/lib/ssl/src/dtls_socket.erl +++ b/lib/ssl/src/dtls_socket.erl @@ -137,7 +137,7 @@ internal_inet_values() -> [{active, false}, {mode,binary}]. default_inet_values() -> - [{active, true}, {mode, list}]. + [{active, true}, {mode, list}, {packet, 0}, {packet_size, 0}]. default_cb_info() -> {gen_udp, udp, udp_closed, udp_error}. @@ -149,8 +149,12 @@ get_emulated_opts(EmOpts, EmOptNames) -> emulated_socket_options(InetValues, #socket_options{ mode = Mode, + packet = Packet, + packet_size = PacketSize, active = Active}) -> #socket_options{ mode = proplists:get_value(mode, InetValues, Mode), + packet = proplists:get_value(packet, InetValues, Packet), + packet_size = proplists:get_value(packet_size, InetValues, PacketSize), active = proplists:get_value(active, InetValues, Active) }. |