telephonyprotocols/rawipnif/version1/inc/Constants.h
branchRCL_3
changeset 20 07a122eea281
parent 0 3553901f7fa8
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
       
     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 _LIT(KDescIp, "ip");
       
    35 _LIT(KDescIcmp, "icmp");
       
    36 _LIT(KIPv4ProtocolIfName, "Bttint4");
       
    37 
       
    38 // Constants for IPv6 protocol interface
       
    39 _LIT(KDescIp6, "ip6");
       
    40 _LIT(KIPv6ProtocolIfName, "Bttint6");
       
    41 
       
    42 _LIT(KNifName, "rawipnif");
       
    43 enum TRawIPNifPanic
       
    44     {
       
    45 	KNifUnknownInitState,
       
    46 	KNifUnknownShutDownState,
       
    47 	KNifProtocolInUse,
       
    48 	/** Bca in unkonwn State */
       
    49 	KBcaUnkownState,
       
    50 	/** BCA not exist*/
       
    51 	KBcaNotExist 	
       
    52 	};
       
    53 
       
    54 
       
    55 const TUint16 KIp4FrameType = 0x21;
       
    56 const TUint16 KVanJacCompTCPIPFrameType = 0x2d;
       
    57 const TUint16 KVanJacUnCompTCPIPFrameType = 0x2f;
       
    58 const TUint16 KIp6FrameType = 0x57;
       
    59 
       
    60 const TUint KDefaultSpeedMetric = 1;
       
    61 const TUint KDefaultMtu = 1500;
       
    62 
       
    63 const TUint KDataPacketMaxSize = 4096;
       
    64 
       
    65 // BTT TSY contants
       
    66 const TInt KTsyPhone = 0;
       
    67 
       
    68 // Flow control constants
       
    69 const TInt KStopSending		= 0;
       
    70 const TInt KContinueSending	= 1;
       
    71 
       
    72 _LIT(KRawIPNifName, "RawIP");
       
    73 
       
    74 // constants for diagnostic logging
       
    75 _LIT8(KNifSubDir, "RawIp"); 
       
    76 _LIT8(KRefFile, "RawIP.txt"); 
       
    77 
       
    78 // Max size of IP packet 
       
    79 const TInt KMaxIPPacket = 1500;
       
    80 const TInt KIPTagHeaderLength = 2;
       
    81 const TInt KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength;
       
    82 
       
    83 const TInt KIPTagHeaderByte1 = 0x00;
       
    84 const TInt KIPTagHeaderByte2 = 0x21;
       
    85 
       
    86 #endif	//CONSTANTS_H