Commit 7c3712c4 authored by tepelmann's avatar tepelmann
Browse files

Removed template keyword from external function parameters.

parent a04ebc6e
Loading
Loading
Loading
Loading
+10 −10
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@
	 * @param   p_msg Ipv6 packet
	 * @param   p_msg Ipv6 packet
	 * @return  payload length in bytes
	 * @return  payload length in bytes
	*/
	*/
	external function fx_payloadLength( in template Ipv6Packet p_msg ) 
	external function fx_payloadLength( in Ipv6Packet p_msg ) 
	return UInt16;
	return UInt16;


	/** @desc    This external function calculates the total length
	/** @desc    This external function calculates the total length
@@ -47,7 +47,7 @@
	 * @param   p_msg Ipv4 packet
	 * @param   p_msg Ipv4 packet
	 * @return  payload length in bytes
	 * @return  payload length in bytes
	*/
	*/
	external function fx_ipv4PacketTotalLength( in template Ipv4Packet p_msg ) 
	external function fx_ipv4PacketTotalLength( in Ipv4Packet p_msg ) 
	return UInt16;
	return UInt16;
	
	
	/** @desc    This external function calculates the payload length
	/** @desc    This external function calculates the payload length
@@ -56,7 +56,7 @@
	 * @param   p_entry Nr of Tunnelled packet within the IPv6Packet
	 * @param   p_entry Nr of Tunnelled packet within the IPv6Packet
	 * @return  payload length in bytes
	 * @return  payload length in bytes
	*/
	*/
	external function fx_tunnelledPayloadLength( template Ipv6Packet p_msg, in UInt8 p_entry ) 
	external function fx_tunnelledPayloadLength( in Ipv6Packet p_msg, in UInt8 p_entry ) 
	return UInt16;
	return UInt16;
	
	
	/** @desc   Calculates the checksum over the IPv6 payload
	/** @desc   Calculates the checksum over the IPv6 payload
@@ -66,9 +66,9 @@
	 * @param  p_nextHeader Needed for the checksum calculation
	 * @param  p_nextHeader Needed for the checksum calculation
	 * @return checksum value
	 * @return checksum value
	*/
	*/
	external function fx_calcPayloadChecksum(in template Ipv6Address p_srcAddress,	
	external function fx_calcPayloadChecksum(in Ipv6Address p_srcAddress,	
											 in template Ipv6Address p_dstAddress, 
											 in Ipv6Address p_dstAddress, 
											 in template Ipv6Payload p_payload,
											 in Ipv6Payload p_payload,
											 in UInt8 p_nextHeader) 
											 in UInt8 p_nextHeader) 
	return Oct2;
	return Oct2;


@@ -76,20 +76,20 @@
	 * @param  p_payload Checksum is calculated over this
	 * @param  p_payload Checksum is calculated over this
	 * @return checksum value
	 * @return checksum value
	*/
	*/
	external function fx_calcIpv4PayloadChecksum(in template Ipv4Payload p_payload) 
	external function fx_calcIpv4PayloadChecksum(in Ipv4Payload p_payload) 
	return Oct2;
	return Oct2;


	/** @desc   Calculates the header checksum (HCS) over the IPv4 header
	/** @desc   Calculates the header checksum (HCS) over the IPv4 header
	 * @param  p_ipv4Header Checksum is calculated over this
	 * @param  p_ipv4Header Checksum is calculated over this
	 * @return checksum value
	 * @return checksum value
	*/
	*/
	external function fx_calcIpv4Hcs(in template Ipv4Header p_ipv4Header) 
	external function fx_calcIpv4Hcs(in Ipv4Header p_ipv4Header) 
	return Oct2;
	return Oct2;
	
	
	/** @desc 	This external function runs the Ipv6Packet through Codec and returns 
	/** @desc 	This external function runs the Ipv6Packet through Codec and returns 
	 *			the octetstring representing the Ipv6Packet
	 *			the octetstring representing the Ipv6Packet
	*/
	*/
	external function fx_encodeMessage (in template Ipv6Packet p_msg)
	external function fx_encodeMessage (in Ipv6Packet p_msg)
	return octetstring;
	return octetstring;


	/** @desc   This external function calculates the checksum for MIPv6 Header.
	/** @desc   This external function calculates the checksum for MIPv6 Header.
@@ -153,7 +153,7 @@
	 * @param   p_authHeader Authentication Header
	 * @param   p_authHeader Authentication Header
	 * @return  payload length in 32-bits words
	 * @return  payload length in 32-bits words
	*/
	*/
	external function fx_authHeaderPayloadLength(in template AuthHeader p_authHeader) return UInt8;
	external function fx_authHeaderPayloadLength(in AuthHeader p_authHeader) return UInt8;


	/** @desc	This external function implements the negotiated
	/** @desc	This external function implements the negotiated
	 *         	pseudo random function and calcutes pseudo random value
	 *         	pseudo random function and calcutes pseudo random value