Commit a0c09ae4 authored by seb's avatar seb
Browse files

TC01-08 for HA Under Test added

parent 4707feec
Loading
Loading
Loading
Loading
+379 −140

File changed.

Preview size limit exceeded, changes collapsed.

−14
Changes for ttcn3/EtsiLibrary/LibIpv6/LibMobility/LibIpv6_Rfc3775Mipv6_Templates.ttcn: 0 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -36,20 +36,6 @@
			identifier := p_identifier,
			reserved := c_uInt16Zero
		}
		//todo exthdr param
		template HomeAgentAddressDiscoveryRequest m_dhaadReq_mipHdr (	template Ipv6Address p_src,
															template Ipv6Address p_dst,
															UInt8 p_mobilityHeaderType,
															template MipMessage p_mipMessage,
															UInt16 p_ident) := {
			ipv6Hdr :=  m_ipHdr_nextHdr_srcDst(c_mipHdr, p_src, p_dst),
			extHdrList := {m_extHdr_mipHeader(c_icmpHdr, p_mobilityHeaderType, p_mipMessage )},
			icmpType := c_mipIcmpHomeAgentAddressDiscoveryRequest,
			icmpCode := c_icmpCode0,
			checksum := c_2ZeroBytes,
			identifier := p_ident,
			reserved := c_uInt16Zero
		}

		template HomeAgentAddressDiscoveryRequest mw_dhaadReq (	template Ipv6Address p_src,
															template Ipv6Address p_dst) := {
+43 −5
Changes for ttcn3/EtsiLibrary/LibIpv6/LibMultiRfcs/LibIpv6_MultiRfcs_Templates.ttcn: 43 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -41,6 +41,12 @@ module LibIpv6_MultiRfcs_Templates {

	group paddingTemplates {

		template OptPadN  m_optPad2 := {
			optType := 1,
			optLen := 0,
			padding := omit
		}

		template OptPadN  m_optPad4 := {
			optType := 1,
			optLen := 2,
@@ -146,6 +152,24 @@ module LibIpv6_MultiRfcs_Templates {
			}
		}

		template MipMessage mw_bindingUpdate(	UInt1 p_aFlag,
												UInt1 p_hFlag,
												UInt1 p_lFlag,
												UInt1 p_kFlag,
												UInt16 p_lifeTime,
												template MipOptionList p_mipOptions) := {	
			bindingUpdate := {
				sequenceNumber := ?,
				aFlag := p_aFlag,
				hFlag := p_hFlag,
				lFlag := p_lFlag,
				kFlag := p_kFlag,
				reserved := c_uInt12Zero,
				lifeTime := p_lifeTime,		
				mipOptions := p_mipOptions
			}
		}

		template MipMessage mw_bindingAck(UInt16 p_seqNr) := {	
			bindingAck := {
				status := c_mipCodeBindingUpdateAccepted,
@@ -208,17 +232,31 @@ module LibIpv6_MultiRfcs_Templates {
	group mobilityOptTemplates {

		/*
		 *	@desc This message is 4 Octets long
		 *	@param  p_dstOpt First element in the Destination option list
		*/
		template MipOption m_mipOpt_padN(template OptPadN p_optPadN) := {
			optPadN := p_optPadN
		template MipOptionList m_mipOptList_1Elem ( template MipOption p_mipOpt ) := {
			p_mipOpt
		}

		/*
		 *	@param  p_dstOpt First element in the Destination option list
		*/
		template MipOptionList m_mipOptList_1Elem ( template MipOption p_mipOpt ) := {
			p_mipOpt
		template MipOptionList m_mipOptList_2Elem ( template MipOption p_mipOpt1, template MipOption p_mipOpt2 ) := {
			p_mipOpt1, p_mipOpt2
		}

		template MipOption m_mipOpt_altCoa(template MipOptAltCoA p_mipOptAltCoA) := {
			mipOptAltCoA := p_mipOptAltCoA
		}

		template MipOption m_mipOpt_padN(template OptPadN p_optPadN) := {
			optPadN := p_optPadN
		}

		template MipOptAltCoA m_mipOptAltCoA(in template Ipv6Address p_addr) := {
			mipOptType :=3,
			mipOptLen := 16,
			alternateCoA := p_addr
		}
		
	}//end group mobilityOptTemplates