Commit 0dba9e25 authored by berge's avatar berge
Browse files

small errors in EST fns corrected

parent 6d9fb7b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@
//	external function fx_encrypt(in UInt31 p_spi, in EspHeader p_espHeader)
//	return octetstring;

	external function fx_setSecurityParameters(in Sa p_sa)
	external function fx_setSecurityParameters(in Sad p_sa)
	return FncRetCode;
	
	/* @desc    This external function calculates the payload length
+1 −1
Original line number Diff line number Diff line
@@ -1131,7 +1131,7 @@ group rfc4303Esp_ExtHdrFunctions {
		}

		//TODO chose in function of PX_SPI the SAD to be used for testing
		v_ret := fx_setSecurityParameters(vc_sad[c_saOut]);
		v_ret := fx_setSecurityParameters(Sad:{vc_sad[c_saOut]});
		if (v_ret != e_success) {log("fx_setSecurityParameters: Error when settign security parameters");}
		
	}//end f_init_ipSecParams
+14 −0
Original line number Diff line number Diff line
@@ -185,6 +185,20 @@ module LibIpv6_Rfc2463Icmpv6_Templates {
			}
		}
		
		template EchoReply mw_echoReply_ahHdr := {
			ipv6Hdr := mw_ipHdr_nextHdr(c_authHdr),
			extHdrList := *,
			ipv6Payload := {
				echoReplyMsg := {
					icmpType := c_echoReplyMsg,
					icmpCode := c_icmpCode0,
					checksum := ?,
					identifier := ?,
					sequenceNumber := ?,
					data := * }
			}
		}

		/*
		 *	@param  p_src Binary IPv6 address associated with the
		 *          test component.
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ module LibIpv6_Rfc4306Ikev2_Functions {
	{
		var FncRetCode v_ret;
		// vc_ikeSad[0].spiInitiator := ; fill from IKE Header
		vc_ikeSad[0].spiResponder := PX_IKE_SPI
		vc_ikeSad[0].spiResponder := PX_IKE_SPI;
		vc_ikeSad[0].messageID := 0; 
		vc_ikeSad[0].ikeEncryptionAlgo := PX_IKE_ENCALGO; 
		// p_ikeSa.ikeEncryptionKey := ; ToDo!!!