aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/gen_sctp.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2010-08-25 18:03:09 +0200
committerRaimo Niskanen <[email protected]>2010-08-31 16:15:49 +0200
commiteaf1d4c5850ee84427d70e3df42fe777d82249c2 (patch)
treecc668454d7fa9aa450c1451111a8921e068b79fe /lib/kernel/src/gen_sctp.erl
parenteca2411eb67461bf3cda66d0f981b47698ab99f3 (diff)
downloadotp-eaf1d4c5850ee84427d70e3df42fe777d82249c2.tar.gz
otp-eaf1d4c5850ee84427d70e3df42fe777d82249c2.tar.bz2
otp-eaf1d4c5850ee84427d70e3df42fe777d82249c2.zip
Keep default #sctp_sndrcvinfo{} fields on gen_sctp:send/4
Diffstat (limited to 'lib/kernel/src/gen_sctp.erl')
-rw-r--r--lib/kernel/src/gen_sctp.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/kernel/src/gen_sctp.erl b/lib/kernel/src/gen_sctp.erl
index 5a31e3976f..a1542ab507 100644
--- a/lib/kernel/src/gen_sctp.erl
+++ b/lib/kernel/src/gen_sctp.erl
@@ -166,18 +166,14 @@ send(S, #sctp_assoc_change{assoc_id=AssocId}, Stream, Data)
when is_port(S), is_integer(Stream) ->
case inet_db:lookup_socket(S) of
{ok,Mod} ->
- Mod:sendmsg(S, #sctp_sndrcvinfo{
- stream = Stream,
- assoc_id = AssocId}, Data);
+ Mod:send(S, AssocId, Stream, Data);
Error -> Error
end;
send(S, AssocId, Stream, Data)
when is_port(S), is_integer(AssocId), is_integer(Stream) ->
case inet_db:lookup_socket(S) of
{ok,Mod} ->
- Mod:sendmsg(S, #sctp_sndrcvinfo{
- stream = Stream,
- assoc_id = AssocId}, Data);
+ Mod:send(S, AssocId, Stream, Data);
Error -> Error
end;
send(S, AssocChange, Stream, Data) ->