telephonyprotocols/rawipnif/inc/Constants.h
branchRCL_3
changeset 21 4814c5a49428
parent 8 3f227a47ad75
equal deleted inserted replaced
20:07a122eea281 21:4814c5a49428
    62 const TUint16 KVanJacCompTCPIPFrameType = 0x2d;
    62 const TUint16 KVanJacCompTCPIPFrameType = 0x2d;
    63 const TUint16 KVanJacUnCompTCPIPFrameType = 0x2f;
    63 const TUint16 KVanJacUnCompTCPIPFrameType = 0x2f;
    64 const TUint16 KIp6FrameType = 0x57;
    64 const TUint16 KIp6FrameType = 0x57;
    65 
    65 
    66 const TUint KDefaultSpeedMetric = 1;
    66 const TUint KDefaultSpeedMetric = 1;
    67 const TUint KDefaultMtu = 1500;
    67 // generally, the default MTU should be 1500 bytes but it has been 
       
    68 // determined that for a number of real world use cases, 1500 bytes
       
    69 // provides fairly poor performance, so we're limiting it 1400 here
       
    70 // this can be overridden by patchable constant (iby file).
       
    71 const TUint KDefaultMtu = 1400; 
    68 
    72 
    69 const TUint KDataPacketMaxSize = 4096;
    73 const TUint KDataPacketMaxSize = 4096;
    70 
    74 
    71 // BTT TSY contants
    75 // BTT TSY contants
    72 const TInt KTsyPhone = 0;
    76 const TInt KTsyPhone = 0;
    76 // constants for diagnostic logging
    80 // constants for diagnostic logging
    77 _LIT8(KNifSubDir, "RawIp"); 
    81 _LIT8(KNifSubDir, "RawIp"); 
    78 _LIT8(KRefFile, "RawIP"); 
    82 _LIT8(KRefFile, "RawIP"); 
    79 
    83 
    80 // Max size of IP packet 
    84 // Max size of IP packet 
    81 const TUint KMaxIPPacket = 1500;
    85 // generally, the default MTU should be 1500 bytes but it has been 
       
    86 // determined that for a number of real world use cases, 1500 bytes
       
    87 // provides fairly poor performance, so we're limiting it 1400 here
       
    88 // this can be overridden by patchable constant (iby file).
       
    89 const TUint KMaxIPPacket = 1400;
    82 const TUint KIPTagHeaderLength = 2;
    90 const TUint KIPTagHeaderLength = 2;
    83 const TUint KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength;
    91 const TUint KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength;
    84 
    92 
    85 const TInt KIPTagHeaderByte1 = 0x00;
    93 const TInt KIPTagHeaderByte1 = 0x00;
    86 const TInt KIPTagHeaderByte2 = 0x21;
    94 const TInt KIPTagHeaderByte2 = 0x21;