aboutsummaryrefslogtreecommitdiffstats
path: root/library/IPA_CodecPort.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-11-29 11:47:13 +0100
committerHarald Welte <laforge@gnumonks.org>2017-11-29 12:03:32 +0100
commit1218883e157c2d3f9dfb4f4849ae9034a05c7681 (patch)
tree2a992cf4d851e24065f6e33ea1eb75b49cf0f54c /library/IPA_CodecPort.ttcn
parent26595451b33ff8a07d7dc2f267952ef6211ed7fe (diff)
IPA_Emulation: Properly dissect multiple IPA messages in one TCP segment
Diffstat (limited to 'library/IPA_CodecPort.ttcn')
-rw-r--r--library/IPA_CodecPort.ttcn12
1 files changed, 0 insertions, 12 deletions
diff --git a/library/IPA_CodecPort.ttcn b/library/IPA_CodecPort.ttcn
index 3c68e227..9ba9d185 100644
--- a/library/IPA_CodecPort.ttcn
+++ b/library/IPA_CodecPort.ttcn
@@ -26,18 +26,6 @@ module IPA_CodecPort {
msg := msg
}
- /* 'stream' contains the octets received so far, we must return the total length */
- function f_IPA_getMsgLen(in octetstring stream, inout ro_integer args) return integer {
- var integer stream_len := lengthof(stream);
- var integer len;
- if (stream_len < 2) {
- /* insufficient length to determine the length */
- return -1;
- }
- len := 3 + oct2int(substr(stream, 0, 2));
- return len;
- }
-
private function IPL4_to_IPA_RecvFrom(in ASP_RecvFrom pin, out IPA_RecvFrom pout) {
var PDU_IPA ipa := dec_PDU_IPA(pin.msg);
pout.connId := pin.connId;