telephonyprotocols/rawipnif/inc/Constants.h
changeset 23 6b1d113cdff3
parent 20 244d7c5f118e
child 24 6638e7f4bd8f
equal deleted inserted replaced
20:244d7c5f118e 23:6b1d113cdff3
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2002-2010 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 "Eclipse Public License v1.0"
     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.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    50 	/** Bca in unkonwn State */
    50 	/** Bca in unkonwn State */
    51 	KBcaUnkownState,
    51 	KBcaUnkownState,
    52 	/** BCA not exist*/
    52 	/** BCA not exist*/
    53 	KBcaNotExist,
    53 	KBcaNotExist,
    54     /** BCA not exist*/
    54     /** BCA not exist*/
    55     KBcaAlreadyExists
    55     KBcaAlreadyExists,
       
    56     /** invalid packet size on uplink */
       
    57     KFlowInvalidULPacketSize
    56     };
    58     };
    57 
    59 
    58 
    60 
    59 const TUint16 KIp4FrameType = 0x21;
    61 const TUint16 KIp4FrameType = 0x21;
    60 const TUint16 KVanJacCompTCPIPFrameType = 0x2d;
    62 const TUint16 KVanJacCompTCPIPFrameType = 0x2d;
    67 const TUint KDataPacketMaxSize = 4096;
    69 const TUint KDataPacketMaxSize = 4096;
    68 
    70 
    69 // BTT TSY contants
    71 // BTT TSY contants
    70 const TInt KTsyPhone = 0;
    72 const TInt KTsyPhone = 0;
    71 
    73 
    72 // Flow control constants
       
    73 const TInt KStopSending		= 0;
       
    74 const TInt KContinueSending	= 1;
       
    75 
       
    76 _LIT(KRawIPNifName, "RawIP");
    74 _LIT(KRawIPNifName, "RawIP");
    77 
    75 
    78 // constants for diagnostic logging
    76 // constants for diagnostic logging
    79 _LIT8(KNifSubDir, "RawIp"); 
    77 _LIT8(KNifSubDir, "RawIp"); 
    80 _LIT8(KRefFile, "RawIP"); 
    78 _LIT8(KRefFile, "RawIP"); 
    81 
    79 
    82 // Max size of IP packet 
    80 // Max size of IP packet 
    83 const TInt KMaxIPPacket = 1500;
    81 const TUint KMaxIPPacket = 1500;
    84 const TInt KIPTagHeaderLength = 2;
    82 const TUint KIPTagHeaderLength = 2;
    85 const TInt KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength;
    83 const TUint KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength;
    86 
    84 
    87 const TInt KIPTagHeaderByte1 = 0x00;
    85 const TInt KIPTagHeaderByte1 = 0x00;
    88 const TInt KIPTagHeaderByte2 = 0x21;
    86 const TInt KIPTagHeaderByte2 = 0x21;
    89 
    87 
    90 #endif	//CONSTANTS_H
    88 #endif	//CONSTANTS_H