Commit 8bd51be8 authored by peter's avatar peter
Browse files

No commit message

No commit message
parent 4dfa3ff9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -33,7 +33,9 @@
		const UInt32 c_validLifetime10s := 10;
		const UInt32 c_preferredLifetime0s := 0;
		const UInt32 c_preferredLifetime10s := 10;
		const UInt32 c_mtu1180 := 1180;
		const UInt32 c_mtu1280 := 1280;
		const UInt32 c_mtu1380 := 1380;
		const UInt32 c_mtu1460 := 1460;
		const UInt8 c_mtuOptLen := 1;
		const UInt8 c_optLen1 := 1;
+22 −0
Original line number Diff line number Diff line
@@ -562,6 +562,28 @@
			data := p_data
		}

		/*
		 *	@param  p_src Binary IPv6 address associated with the
		 *          test component.
		 *	@param  p_dst Binary IPv6 address associated with NUT.
		 *	@param  p_mtu MTU value to be sent.
		 *	@param  p_data data in ICMPv6 Packet Too Big message.
		*/
		template PacketTooBig m_packetTooBig_noExtHdr_mtu (
			template Ipv6Address p_src,
			template Ipv6Address p_dst,
			UInt32 p_mtu,
			template octetstring p_data
		) := {
			ipv6Hdr := m_ipHdr(c_icmpHdr, p_src, p_dst),
			extHdrList := omit,
			icmpType:= c_packetTooBig,
			icmpCode:= c_icmpCode0,
			checksum:= c_2ZeroBytes,
			mtu := p_mtu,
			data := p_data
		}

		/*
		 *	@param  p_src Binary IPv6 address associated with the
		 *          test component.
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ module LibIpv6_MultiRfcs_TypesAndValues {
			const Oct320	c_320ZeroBytes := c_160ZeroBytes & c_160ZeroBytes;
			const Oct640	c_640ZeroBytes := c_320ZeroBytes & c_320ZeroBytes;
			const Oct1280	c_1280ZeroBytes := c_640ZeroBytes & c_640ZeroBytes;
			const Oct1380	c_1380ZeroBytes := c_640ZeroBytes & c_640ZeroBytes & c_80ZeroBytes & c_16ZeroBytes & c_4ZeroBytes;

			const UInt16	c_zeroPayloadLength := 0;
			const UInt8		c_trafficClassZero := 0;