telephonyprotocols/rawipnif/inc/Constants.h
changeset 0 3553901f7fa8
child 15 fc69e1e37771
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #ifndef CONSTANTS_H
       
    21 #define CONSTANTS_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <etelqos.h>
       
    25 
       
    26 const TUint KNifMajorVersionNumber=1;
       
    27 const TUint KNifMinorVersionNumber=0;
       
    28 const TUint KNifBuildVersionNumber=0;
       
    29 
       
    30 // For CommDb usage
       
    31 const TUint KSlashChar='\\';
       
    32 
       
    33 // Constants for IPv4 protocol interface
       
    34 
       
    35 _LIT8(KDescIp, "ip");
       
    36 _LIT8(KDescIcmp, "icmp");
       
    37 
       
    38 _LIT(KIPv4ProtocolIfName, "Bttint4");
       
    39 
       
    40 // Constants for IPv6 protocol interface
       
    41 _LIT8(KDescIp6, "ip6");
       
    42 _LIT(KIPv6ProtocolIfName, "Bttint6");
       
    43 
       
    44 _LIT(KNifName, "rawipnif");
       
    45 enum TRawIPNifPanic
       
    46     {
       
    47 	KNifUnknownInitState,
       
    48 	KNifUnknownShutDownState,
       
    49 	KNifProtocolInUse,
       
    50 	/** Bca in unkonwn State */
       
    51 	KBcaUnkownState,
       
    52 	/** BCA not exist*/
       
    53 	KBcaNotExist 	
       
    54 	};
       
    55 
       
    56 
       
    57 const TUint16 KIp4FrameType = 0x21;
       
    58 const TUint16 KVanJacCompTCPIPFrameType = 0x2d;
       
    59 const TUint16 KVanJacUnCompTCPIPFrameType = 0x2f;
       
    60 const TUint16 KIp6FrameType = 0x57;
       
    61 
       
    62 const TUint KDefaultSpeedMetric = 1;
       
    63 const TUint KDefaultMtu = 1500;
       
    64 
       
    65 const TUint KDataPacketMaxSize = 4096;
       
    66 
       
    67 // BTT TSY contants
       
    68 const TInt KTsyPhone = 0;
       
    69 
       
    70 // Flow control constants
       
    71 const TInt KStopSending		= 0;
       
    72 const TInt KContinueSending	= 1;
       
    73 
       
    74 _LIT(KRawIPNifName, "RawIP");
       
    75 
       
    76 // constants for diagnostic logging
       
    77 _LIT8(KNifSubDir, "RawIp"); 
       
    78 _LIT8(KRefFile, "RawIP"); 
       
    79 
       
    80 // Max size of IP packet 
       
    81 const TInt KMaxIPPacket = 1500;
       
    82 const TInt KIPTagHeaderLength = 2;
       
    83 const TInt KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength;
       
    84 
       
    85 const TInt KIPTagHeaderByte1 = 0x00;
       
    86 const TInt KIPTagHeaderByte2 = 0x21;
       
    87 
       
    88 #endif	//CONSTANTS_H