Commit b80ef26a authored by peter's avatar peter
Browse files

No commit message

No commit message
parent 6967b40a
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -709,6 +709,45 @@
			otherOption := p_otherOpt
		}

		/*
		 *	@param  p_macTlla Binary MAC source address associated with
		 *          link layer of target
		 *	@param	p_redirectHeader Redirected Header Option
	    */
		template RedirectOptions m_redirectOptions_macTlla_redirectHeader (
			template Oct6to15 p_macTlla,
			template RedirectedHeader p_redirectHeader ) := {
			tgtLinkLayerAddr := m_macTlla(p_macTlla),
			redirectHeader := p_redirectHeader,
			otherOption := omit
		}

		/*
		 *	@param  p_length Length of the option
		 *	@param	p_data Data in Redirected Header Option
	    */
		template RedirectedHeader m_redirectHeader (
			UInt8 p_length,
			octetstring p_data ) := {
			icmpType := c_redirectOption,
			optionLength := p_length,
			reserved := 0,
			data := p_data
		}

		/*
		 *	@param  p_length Length of the option
		 *	@param	p_data Data in Redirected Header Option
	    */
		template RedirectedHeader m_redirectHeader_nonEmptyReserved (
			UInt8 p_length,
			octetstring p_data ) := {
			icmpType := c_redirectOption,
			optionLength := p_length,
			reserved := c_uInt48Max,
			data := p_data
		}

	}//end group options

} // end module LibIpv6_Rfc2461NeighborDiscovery_Templates