Commit 3bf6173e authored by peter's avatar peter
Browse files

No commit message

No commit message
parent a0675107
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
@@ -918,6 +918,34 @@
			prefix:= p_prefix
		}

		/*
		 *	@param  p_prefixLength TODO
		 *	@param  p_optionLength Length of the prefix option.
		 *	@param  p_lFlag Value for link flag.
		 *	@param  p_aFlag Value for autoconfiguration flag.
		 *	@param  p_validLifetime Value for valid life time duration.
		 *	@param  p_preferredLifetime Value for preffered life time duration.
		 *	@param  p_prefix Address prefix to be used
	    */
		template PrefixInfo m_prefixInfo_optionLength (	UInt8 p_prefixLength,
											UInt8 p_optionLength,
											UInt1 p_lFlag,
											UInt1 p_aFlag,
											UInt32 p_validLifetime,
											UInt32 p_preferredLifetime,
											Ipv6Address p_prefix):= {
			icmpType:= c_prefixInfo,
			optionLength:= p_optionLength,
			prefixLength:= p_prefixLength,
			linkFlag:=p_lFlag,
			autoConfigFlag:=p_aFlag,
			reserved1:=0,
			validLifetime:=p_validLifetime,
			preferredLifetime:=p_preferredLifetime,
			reserved2:=0,
			prefix:= p_prefix
		}

		/*
		 *	@param  p_macSlla Binary MAC source address associated with
		 *          link layer of test component
@@ -973,6 +1001,36 @@
												p_prefix) },
			otherOption := omit }

		/*
		 *	@param  p_macSlla Binary MAC source address associated with
		 *          link layer of test component
		 *	@param  p_optionLength Length of the prefix option.
		 *	@param  p_prefixLength Length of the prefix.
		 *	@param  p_lFlag Value for link flag.
		 *	@param  p_aFlag Value for autoconfiguration flag.
		 *	@param  p_validLifetime Value for valid life time duration.
		 *	@param  p_preferredLifetime Value for preffered life time duration.
		 *	@param  p_prefix Address prefix to be used
	    */
		template RtAdvOptions m_rtAdvOpt_macSrc_prefix_optionLength  (	template Oct6to15 p_macSlla,
															UInt8 p_optionLength,
															UInt8 p_prefixLength,
															UInt1 p_lFlag,
															UInt1 p_aFlag,
															UInt32 p_validLifetime,
															UInt32 p_preferredLifetime,
															Ipv6Address p_prefix):={
			srcLinkLayerAddr := m_macSlla(p_macSlla),
			mtuOption:= omit,
			prefixInfoList := {  m_prefixInfo_optionLength(	p_prefixLength,
												p_optionLength,
												p_lFlag,
												p_aFlag,
												p_validLifetime,
												p_preferredLifetime,
												p_prefix) },
			otherOption := omit }

		/*
		 *	@param  p_prefixLength Length of the prefix.
		 *	@param  p_lFlag Value for link flag.
+2 −0
Original line number Diff line number Diff line
@@ -41,8 +41,10 @@
		const UInt1 c_aFlag0 := 0;
		const UInt32 c_validLifetime0s := 0;
		const UInt32 c_validLifetime30s := 30;
		const UInt32 c_validLifetime60s := 60;
		const UInt32 c_preferredLifetime0s := 0;
		const UInt32 c_preferredLifetime10s := 10;
		const UInt32 c_preferredLifetime60s := 60;
		const UInt32 c_mtu1180 := 1180;
		const UInt32 c_mtu1280 := 1280;
		const UInt32 c_mtu1380 := 1380;