aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_traffic_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-06-12 15:26:45 +0200
committerAnders Svensson <[email protected]>2017-06-12 16:13:03 +0200
commitc591056bb2ce9147cc946e068e980050be67dcc1 (patch)
tree8d7787ed936c3d6d09c8a543bd0dd4830f343550 /lib/diameter/test/diameter_traffic_SUITE.erl
parent373cd07c28bbe3e299eaca1c96b1441623ad4979 (diff)
downloadotp-c591056bb2ce9147cc946e068e980050be67dcc1.tar.gz
otp-c591056bb2ce9147cc946e068e980050be67dcc1.tar.bz2
otp-c591056bb2ce9147cc946e068e980050be67dcc1.zip
Add diameter_sctp option packet
To determine the wrapping of messages passed to recv callbacks and into diameter. The default passing of the input stream in transport_data is probably of no practical use, but has been set since time immemorial.
Diffstat (limited to 'lib/diameter/test/diameter_traffic_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_traffic_SUITE.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl
index 95339127d4..f567a6f367 100644
--- a/lib/diameter/test/diameter_traffic_SUITE.erl
+++ b/lib/diameter/test/diameter_traffic_SUITE.erl
@@ -466,7 +466,9 @@ add_transports(Config) ->
LRef = ?util:listen(SN,
[T,
{sender, SS},
- {message_cb, ST andalso {?MODULE, message, [4]}}],
+ {message_cb, ST andalso {?MODULE, message, [4]}}
+ | [{packet, hd(?util:scramble([false, raw]))}
+ || T == sctp andalso CS]],
[{capabilities_cb, fun capx/2},
{pool_size, 8},
{spawn_opt, [{min_heap_size, 8096}]},
@@ -1509,6 +1511,8 @@ request(#diameter_base_RAR{}, _Caps) ->
%% Limit the number of messages received. More can be received if read
%% in the same packet.
+message(recv = D, {[_], Bin}, N) ->
+ message(D, Bin, N);
message(Dir, #diameter_packet{bin = Bin}, N) ->
message(Dir, Bin, N);