Loading LibGtp/ttcn/LibGtp_PIXITS.ttcn 0 → 100644 +26 −0 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: GTP_PIXITS.ttcn 459 2012-04-16 08:53:33Z pintar $ * @desc This module provides PIXITS used by the test component * for DIAMETER tests. */ module LibGtp_PIXITS { // LibCommon import from LibCommon_BasicTypesAndValues all; import from LibCommon_DataStrings all; group GTP_PIXITparameters{ /** @desc boolean for GTP_support */ modulepar boolean PX_GTP := false; /** @desc octetstring (4 octets) Tunnel Endpoint Identifier */ modulepar octetstring PX_TEID := '01020304'O; } //group Diameter_PIXITparameters } // end module LibGtp_PIXITS No newline at end of file LibGtp/ttcn/LibGtp_Steps.ttcn3 +2 −1 Original line number Diff line number Diff line Loading @@ -15,11 +15,12 @@ module LibGtp_Steps { import from LibCommon_Sync all; import from LibGtp_TypesAndValues all; import from LibGtp_Interface all; import from LibGtp_Templates all; altstep a_echoResponse () runs on GtpComponent { var GTPv1_MSG v_echo; [] GTP.receive (GTPv1_MSG:?) -> value v_echo {GTP.send (v_echo)} [] GTP.receive (mw_gtp_v1(c_echoRequest)) -> value v_echo {GTP.send (m_gtp_v1(c_echoResponse))} } } No newline at end of file LibGtp/ttcn/LibGtp_Templates.ttcn3 +28 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ module LibGtp_Templates { import from LibCommon_AbstractData all; import from LibCommon_Sync all; import from LibGtp_TypesAndValues all; import from LibGtp_PIXITS all; template GTPv1_MSG m_gtp_v1_dummy := { Loading @@ -24,7 +25,7 @@ module LibGtp_Templates { version := '0001'B, messagetype := '01'O, len := '10'O, teid := '01020304'O, teid := PX_TEID, seqnum := omit, npdu_num := omit, extensionheader := omit Loading @@ -33,5 +34,31 @@ module LibGtp_Templates { } template GTPv1_MSG m_gtp_v1 (octetstring p_messagetype) := { header := { version := '0001'B, messagetype := p_messagetype, len := '10'O, teid := PX_TEID, seqnum := omit, npdu_num := omit, extensionheader := omit }, body := omit } template GTPv1_MSG mw_gtp_v1 (octetstring p_messagetype) := { header := { version := ?, messagetype := p_messagetype, len := ?, teid := ?, seqnum := *, npdu_num := *, extensionheader := * }, body := * } } No newline at end of file LibGtp/ttcn/LibGtp_TypesAndValues.ttcn3 +4 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,9 @@ module LibGtp_TypesAndValues { import from LibCommon_Sync all; const octetstring c_echoRequest := '01'O; const octetstring c_echoResponse := '01'O; /** * @reference ETSI TS 129281 v10.3.0, section 5.1 */ Loading Loading
LibGtp/ttcn/LibGtp_PIXITS.ttcn 0 → 100644 +26 −0 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: GTP_PIXITS.ttcn 459 2012-04-16 08:53:33Z pintar $ * @desc This module provides PIXITS used by the test component * for DIAMETER tests. */ module LibGtp_PIXITS { // LibCommon import from LibCommon_BasicTypesAndValues all; import from LibCommon_DataStrings all; group GTP_PIXITparameters{ /** @desc boolean for GTP_support */ modulepar boolean PX_GTP := false; /** @desc octetstring (4 octets) Tunnel Endpoint Identifier */ modulepar octetstring PX_TEID := '01020304'O; } //group Diameter_PIXITparameters } // end module LibGtp_PIXITS No newline at end of file
LibGtp/ttcn/LibGtp_Steps.ttcn3 +2 −1 Original line number Diff line number Diff line Loading @@ -15,11 +15,12 @@ module LibGtp_Steps { import from LibCommon_Sync all; import from LibGtp_TypesAndValues all; import from LibGtp_Interface all; import from LibGtp_Templates all; altstep a_echoResponse () runs on GtpComponent { var GTPv1_MSG v_echo; [] GTP.receive (GTPv1_MSG:?) -> value v_echo {GTP.send (v_echo)} [] GTP.receive (mw_gtp_v1(c_echoRequest)) -> value v_echo {GTP.send (m_gtp_v1(c_echoResponse))} } } No newline at end of file
LibGtp/ttcn/LibGtp_Templates.ttcn3 +28 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ module LibGtp_Templates { import from LibCommon_AbstractData all; import from LibCommon_Sync all; import from LibGtp_TypesAndValues all; import from LibGtp_PIXITS all; template GTPv1_MSG m_gtp_v1_dummy := { Loading @@ -24,7 +25,7 @@ module LibGtp_Templates { version := '0001'B, messagetype := '01'O, len := '10'O, teid := '01020304'O, teid := PX_TEID, seqnum := omit, npdu_num := omit, extensionheader := omit Loading @@ -33,5 +34,31 @@ module LibGtp_Templates { } template GTPv1_MSG m_gtp_v1 (octetstring p_messagetype) := { header := { version := '0001'B, messagetype := p_messagetype, len := '10'O, teid := PX_TEID, seqnum := omit, npdu_num := omit, extensionheader := omit }, body := omit } template GTPv1_MSG mw_gtp_v1 (octetstring p_messagetype) := { header := { version := ?, messagetype := p_messagetype, len := ?, teid := ?, seqnum := *, npdu_num := *, extensionheader := * }, body := * } } No newline at end of file
LibGtp/ttcn/LibGtp_TypesAndValues.ttcn3 +4 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,9 @@ module LibGtp_TypesAndValues { import from LibCommon_Sync all; const octetstring c_echoRequest := '01'O; const octetstring c_echoResponse := '01'O; /** * @reference ETSI TS 129281 v10.3.0, section 5.1 */ Loading