diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-29 11:47:13 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-29 12:03:32 +0100 |
commit | 1218883e157c2d3f9dfb4f4849ae9034a05c7681 (patch) | |
tree | 2a992cf4d851e24065f6e33ea1eb75b49cf0f54c /library/IPA_CodecPort.ttcn | |
parent | 26595451b33ff8a07d7dc2f267952ef6211ed7fe (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.ttcn | 12 |
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; |