diff options
author | Raimo Niskanen <[email protected]> | 2010-08-25 18:03:09 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-08-31 16:15:49 +0200 |
commit | eaf1d4c5850ee84427d70e3df42fe777d82249c2 (patch) | |
tree | cc668454d7fa9aa450c1451111a8921e068b79fe /lib/kernel/src/gen_sctp.erl | |
parent | eca2411eb67461bf3cda66d0f981b47698ab99f3 (diff) | |
download | otp-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.erl | 8 |
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) -> |