aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-02-14 18:55:56 +0100
committerpespin <pespin@sysmocom.de>2022-02-16 15:47:15 +0000
commit3ede4f65d7a6ab9163c032fe7af7f2f127b2a0ee (patch)
tree6eb8f67990a24fd5b64aa3e4069fd4af8f279f00 /library
parent95263ca61856a28a965d6e666c9a2785632bcba2 (diff)
ggsn: Configure GTP_CodecPort to decode proper UpdatePDPContextRequest/Response
From GTPC_Types.ttcn: """ // determines SUT, needed for decoding updatePDPContextRequest // and updatePDPContextResponse messages type enumerated SystemUnderTest{SGSN(0),GGSN(1),CGW(2),MME(3)}; """ Otherwise decoded UpdatePDPContextResponse is decoded taking choise UpdatePDPContextResponseSGSN. Change-Id: I52a27222d0e37ed2170972af3fd0e07da49a8c61
Diffstat (limited to 'library')
-rw-r--r--library/GTP_CodecPort.ttcn6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/GTP_CodecPort.ttcn b/library/GTP_CodecPort.ttcn
index a8507a68..317210e1 100644
--- a/library/GTP_CodecPort.ttcn
+++ b/library/GTP_CodecPort.ttcn
@@ -15,6 +15,10 @@ module GTP_CodecPort {
import from GTPC_Types all;
import from GTPU_Types all;
+ modulepar {
+ SystemUnderTest mp_pl_SystemUnderTest := SGSN;
+ }
+
/* identifies a remote peer (sender or receiver) */
type record GtpPeer {
ConnectionId connId,
@@ -58,7 +62,7 @@ module GTP_CodecPort {
out_ud.peer.connId := in_ud.connId;
out_ud.peer.remName := in_ud.remName;
out_ud.peer.remPort := in_ud.remPort;
- out_ud.gtpc := dec_PDU_GTPC(in_ud.msg);
+ out_ud.gtpc := dec_PDU_GTPC(in_ud.msg, pl_SystemUnderTest := mp_pl_SystemUnderTest);
} with { extension "prototype(fast)" };