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
This commit is contained in:
Pau Espin 2022-02-14 18:55:56 +01:00 committed by pespin
parent 95263ca618
commit 3ede4f65d7
2 changed files with 6 additions and 1 deletions

View File

@ -21,5 +21,6 @@ GGSN_Tests.m_ggsn_ip4_dns2 := "8.8.8.8"
GGSN_Tests.m_ggsn_ip6_dns1 := "2001:4860:4860::8888"
GGSN_Tests.m_ggsn_ip6_dns2 := "2001:4860:4860::8844"
Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoGGSN";
GTP_CodecPort.mp_pl_SystemUnderTest := GGSN;
[EXECUTE]

View File

@ -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)" };