Commit 6694015e authored by rennoch's avatar rennoch
Browse files

echo reply default

parent 3f50d770
Loading
Loading
Loading
Loading
+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
+2 −1
Original line number Diff line number Diff line
@@ -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
+28 −1
Original line number Diff line number Diff line
@@ -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 := {
@@ -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
@@ -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
+4 −1
Original line number Diff line number Diff line
@@ -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
 */