IPA_Emulation: Properly dissect multiple IPA messages in one TCP segment
diff --git a/library/IPA_Emulation.ttcn b/library/IPA_Emulation.ttcn
index e9894d1..98fbb92 100644
--- a/library/IPA_Emulation.ttcn
+++ b/library/IPA_Emulation.ttcn
@@ -4,6 +4,7 @@
import from IPA_CodecPort all;
import from IPA_CodecPort_CtrlFunct all;
import from IPL4asp_Types all;
+import from IPL4asp_PortType all;
import from MTP3asp_Types all;
import from MTP3asp_PortType all;
@@ -64,6 +65,10 @@
res := IPA_CodecPort_CtrlFunct.f_IPL4_connect(IPA_PORT, remote_host, remote_port,
local_host, local_port, 0, { tcp:={} });
g_ipa_conn_id := res.connId;
+ /* Set function for dissecting the binary */
+ var f_IPL4_getMsgLen vl_f := refers(f_IPL4_fixedMsgLen);
+ IPA_CodecPort_CtrlFunct.f_IPL4_setGetMsgLen(IPA_PORT, g_ipa_conn_id, vl_f, {0, 2, 3, 1, 0});
+
g_is_bsc_mgw := true;
}