epoc32/include/ip4_hdr.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    40 * @name IP v4 constants 
    40 * @name IP v4 constants 
    41 * @since v7.0
    41 * @since v7.0
    42 * @publishedAll
    42 * @publishedAll
    43 * @released
    43 * @released
    44 */
    44 */
    45 ///@{
    45 //@{
    46 const TUint8 KInet4IP_DF = 0x40;	///< Don't Fragment flag
    46 const TUint8 KInet4IP_DF = 0x40;	//< Don't Fragment flag
    47 const TUint8 KInet4IP_MF = 0x20;	///< More Fragments flag
    47 const TUint8 KInet4IP_MF = 0x20;	//< More Fragments flag
    48 const TInt KInetMinMtu = 68;		///< Minimum MTU as defined in RFC-791 
    48 const TInt KInetMinMtu = 68;		//< Minimum MTU as defined in RFC-791 
    49 ///@}
    49 //@}
    50 
    50 
    51 class TInet6HeaderIP4
    51 class TInet6HeaderIP4
    52 /**
    52 /**
    53 *	Encapsulates an IPv4 IP header. 
    53 *	Encapsulates an IPv4 IP header. 
    54 * 
    54 * 
   532 		}
   532 		}
   533 				
   533 				
   534 private:
   534 private:
   535 	union
   535 	union
   536 		{
   536 		{
   537 		TUint8 i[4*15];	///< This allocates maximum length (60 bytes)
   537 		TUint8 i[4*15];	//< This allocates maximum length (60 bytes)
   538 		TUint32 iAlign;	///< A dummy member to force the 4 byte alignment
   538 		TUint32 iAlign;	//< A dummy member to force the 4 byte alignment
   539 		};
   539 		};
   540 	};
   540 	};
   541 
   541 
   542 /**
   542 /**
   543 * @name IP v4 Option constants
   543 * @name IP v4 Option constants
   544 * @since v7.0
   544 * @since v7.0
   545 * @publishedAll
   545 * @publishedAll
   546 * @released
   546 * @released
   547 */
   547 */
   548 ///@{
   548 //@{
   549 const TUint8 KInet4Option_End			= 0x00;
   549 const TUint8 KInet4Option_End			= 0x00;
   550 const TUint8 KInet4Option_Nop			= 0x01;
   550 const TUint8 KInet4Option_Nop			= 0x01;
   551 
   551 
   552 const TUint8 KInet4OptionFlag_Copy		= 0x80;
   552 const TUint8 KInet4OptionFlag_Copy		= 0x80;
   553 ///@}
   553 //@}
   554 
   554 
   555 //
   555 //
   556 //	ICMP v4 constants
   556 //	ICMP v4 constants
   557 //	=================
   557 //	=================
   558 //
   558 //
   560 * @name ICMP v4 constants 
   560 * @name ICMP v4 constants 
   561 * @since v7.0
   561 * @since v7.0
   562 * @publishedAll
   562 * @publishedAll
   563 * @released
   563 * @released
   564 */
   564 */
   565 ///@{
   565 //@{
   566 /** Echo Reply. See TInet6HeaderICMP_Echo (IPv4 and IPv6 use the same format). */
   566 /** Echo Reply. See TInet6HeaderICMP_Echo (IPv4 and IPv6 use the same format). */
   567 const TUint8 KInet4ICMP_EchoReply		=  0;
   567 const TUint8 KInet4ICMP_EchoReply		=  0;
   568 const TUint8 KInet4ICMP_Unreachable		=  3;
   568 const TUint8 KInet4ICMP_Unreachable		=  3;
   569 const TUint8 KInet4ICMP_SourceQuench	=  4;
   569 const TUint8 KInet4ICMP_SourceQuench	=  4;
   570 const TUint8 KInet4ICMP_Redirect		=  5;
   570 const TUint8 KInet4ICMP_Redirect		=  5;
   572 const TUint8 KInet4ICMP_Echo			=  8;
   572 const TUint8 KInet4ICMP_Echo			=  8;
   573 const TUint8 KInet4ICMP_TimeExceeded	= 11;
   573 const TUint8 KInet4ICMP_TimeExceeded	= 11;
   574 const TUint8 KInet4ICMP_ParameterProblem = 12;
   574 const TUint8 KInet4ICMP_ParameterProblem = 12;
   575 const TUint8 KInet4ICMP_TimeStamp		= 13;
   575 const TUint8 KInet4ICMP_TimeStamp		= 13;
   576 const TUint8 KInet4ICMP_TimeStampReply	= 14;
   576 const TUint8 KInet4ICMP_TimeStampReply	= 14;
   577 ///@}
   577 //@}
   578 
   578 
   579 ///@}
   579 //@}
   580 #endif
   580 #endif