diff options
author | Raimo Niskanen <[email protected]> | 2018-09-17 15:42:26 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-09-17 15:42:26 +0200 |
commit | b13ef106fb134f8d8b929e03300a8b6524f367cf (patch) | |
tree | 24b6a029f413987b2f48e200dc96c5953df4025e /lib/kernel/src/inet_tcp.erl | |
parent | fd3d7e7ce693bb960b85b3ea09429adb30145e49 (diff) | |
parent | d6a08843e473da6eebbab0b0e7312efc978108ee (diff) | |
download | otp-b13ef106fb134f8d8b929e03300a8b6524f367cf.tar.gz otp-b13ef106fb134f8d8b929e03300a8b6524f367cf.tar.bz2 otp-b13ef106fb134f8d8b929e03300a8b6524f367cf.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/kernel/src/inet_tcp.erl')
-rw-r--r-- | lib/kernel/src/inet_tcp.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/kernel/src/inet_tcp.erl b/lib/kernel/src/inet_tcp.erl index dac6b3119d..f1e3116856 100644 --- a/lib/kernel/src/inet_tcp.erl +++ b/lib/kernel/src/inet_tcp.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2016. All Rights Reserved. +%% Copyright Ericsson AB 1997-2018. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -164,7 +164,7 @@ listen(Port, Opts) -> %% Accept %% accept(L) -> - case prim_inet:accept(L) of + case prim_inet:accept(L, accept_family_opts()) of {ok, S} -> inet_db:register_socket(S, ?MODULE), {ok,S}; @@ -172,13 +172,15 @@ accept(L) -> end. accept(L, Timeout) -> - case prim_inet:accept(L, Timeout) of + case prim_inet:accept(L, Timeout, accept_family_opts()) of {ok, S} -> inet_db:register_socket(S, ?MODULE), {ok,S}; Error -> Error end. +accept_family_opts() -> [tos, ttl, recvtos, recvttl]. + %% %% Create a port/socket from a file descriptor %% |