Commit 17b2aa93 authored by mullers's avatar mullers
Browse files

test config added

parent 816ad69a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -250,8 +250,7 @@ module AtsIpv6_ModuleParameters {

		modulepar {Oct6to15 PX_MAC_UCA_RT01_A := '00000000A1A1'O}
//		modulepar {Oct6to15 PX_MAC_SOL_NODE_MCA_RT01_A := '3333FF00A1A1'O}
//		modulepar {Ipv6Address PX_LLA_RT01_A := 'FE80000000000000000000FFFE00A1A1'O}
//		modulepar {Ipv6Address PX_GLA_RT01_A := '200106605503276A000000FFFE00A1A1'O}
		modulepar {Ipv4Address PX_IPV4_GLA_RT01_A := 'FE00A1A1'O}
//		modulepar {Ipv6Address PX_SOL_NODE_MCA_RT01_A := 'FF0200000000000000000001FF00A1A1'O}

//		modulepar {Oct6to15 PX_MAC_UCA_RT01_B := '00000000B1B1'O}
@@ -330,7 +329,7 @@ module AtsIpv6_ModuleParameters {
//		 * @desc   Global Address of IUT sending in netA<br>
//		 *         PICS/PIXIT Reference: XXX
//		*/
//		modulepar {Ipv6Address PX_GLA_IUT_A := '200106605503276AACACACFFFE276A31'O}
		modulepar {Ipv4Address PX_IPV4_GLA_IUT_1 := 'FE276A31'O}
//		
//		/*
//		 * @desc   Global Address of IUT sending in netA<br>
+65 −0
Original line number Diff line number Diff line
@@ -1479,4 +1479,69 @@
	
	}//end group changeMacAddress

	group ipv4Cf01  {
		
		/*
		 * @desc This function creates a test adapter configuration message
		 *       for the test component acting as RT01
		*/
		function f_createIpv4CfMsg_rt01()
		return Ipv4CfMessage {
			//Variables
			var Ipv4CfMessage v_cfMsg ;
			//var Ipv6NodeParams 	v_paramsRt01, v_paramsHs01, v_paramsIut, v_paramsMn01;
			var Ipv4NodeParams v_paramsRt01, v_paramsIut;
								
			//v_paramsRt01 := f_createParamsRt01(PX_MAC_UCA_RT01_A, true);
			//v_paramsIut := f_createParamsIutA(PX_MAC_UCA_IUT_1, true);
			//v_paramsMn01 := f_createParamsMn01(PX_MAC_UCA_RT01_A, true);
			//v_paramsHs01 :=	f_createParamsHs01(PX_MAC_UCA_HS01, true);
			
			var FncRetCode v_ret := e_error;
			
			//fill v_cfMsg
			v_cfMsg.role := c_ptcRoleRt01 ;
			v_cfMsg.netDeviceId := PX_NET_DEVICE_ID_1 ;
			v_cfMsg.macFilterList := {		PX_MAC_UCA_RT01_A,
											PX_MAC_UCA_HS01
											//v_paramsRt01.macSolNodeMca,
											//v_paramsHs01.macSolNodeMca, 
											//c_macAllNodesMca,
											//c_macAllRoutersMca,
											//v_paramsIut.macSolNodeMca, //see comment 1 below
											//v_paramsMn01.macSolNodeMca // see comment 3 below
										} ;
										
			// Comment 1:							
			// Added to be able to receive DAD NS
			// in the case of HUT: the DAD NS is ignored in the default
			// in the case of MN (returning Home): TTCN replies, otherwise MN would not know that it's home
			
			// Comment 3:
			// Added to be able to receive DAD NS for MN01's HoA sent by HA under test
			
			//v_cfMsg.paramsHs01 := v_paramsHs01; 
			//v_cfMsg.paramsHs02 := f_createParamsHs02(PX_MAC_UCA_RT01_A, true); 
			//v_cfMsg.paramsHs03 := f_createParamsHs03(PX_MAC_UCA_RT03_A, false);
			v_cfMsg.paramsRt01 := {
				useInTa := true,
				gla := PX_IPV4_GLA_RT01_A,
				macUca := PX_MAC_UCA_RT01_A
			};
			//v_cfMsg.paramsRt02 := omit;			
			//v_cfMsg.paramsRt03 := f_createParamsRt03(PX_MAC_UCA_RT03_A, false);
			//v_cfMsg.paramsRt04 := omit;
			//v_cfMsg.paramsMn01 := v_paramsMn01;
			v_cfMsg.paramsIut  := {
				useInTa := true,
				gla := PX_IPV4_GLA_IUT_1,
				macUca := PX_MAC_UCA_IUT_1
			};
			
			return v_cfMsg ;
			
		}//end function f_createIpv4CfMsg_rt01
		
	}//end ipv4Cf01
	
} // end module AtsIpv6_TestConfiguration
+11 −0
Original line number Diff line number Diff line
@@ -99,6 +99,17 @@ module AtsIpv6_TestConfiguration_TypesAndValues {
		  	encode "ExtFuncCodec"
		}

		type record Ipv4CfMessage {
			String1To64				role,
			String1to255			netDeviceId,
			MacAddressList			macFilterList,
			Ipv4NodeParams			paramsRt01 optional,
			Ipv4NodeParams			paramsIut optional
		}
		with {
		  	encode "ExtFuncCodec"
		}

		const UInt16 c_maxNrIpv6Addresses := 10 ; // max nr of IpAddresses that can be used to configure the filter
		const UInt16 c_maxNrNodes := 10 ; // max nr of Nodes that participate in a test scenario