|
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 |
|
27 // Constants for IPv4 protocol interface |
|
28 _LIT8(KDescIp, "ip"); |
|
29 _LIT8(KDescIcmp, "icmp"); |
|
30 |
|
31 _LIT(KIPv4ProtocolIfName, "Bttint4"); |
|
32 |
|
33 // Constants for IPv6 protocol interface |
|
34 _LIT8(KDescIp6, "ip6"); |
|
35 _LIT(KIPv6ProtocolIfName, "Bttint6"); |
|
36 |
|
37 _LIT(KNifName, "rawip2nif"); |
|
38 |
|
39 // constants for diagnostic logging |
|
40 _LIT8(KNifSubDir, "RawIp2"); |
|
41 _LIT8(KRefFile, "RawIP2"); |
|
42 |
|
43 |
|
44 enum TRawIP2NifPanic |
|
45 { |
|
46 KNifUnknownInitState, |
|
47 KNifUnknownShutDownState, |
|
48 KNifProtocolInUse, |
|
49 /** Bca in unkonwn State */ |
|
50 KBcaUnkownState, |
|
51 /** BCA not exist*/ |
|
52 KBcaNotExist |
|
53 }; |
|
54 |
|
55 |
|
56 const TUint16 KIp4FrameType = 0x21; |
|
57 const TUint16 KIp6FrameType = 0x57; |
|
58 |
|
59 const TUint KDefaultSpeedMetric = 1; |
|
60 const TUint KDefaultMtu = 1500; |
|
61 |
|
62 // Max size of IP packet |
|
63 const TInt KMaxIPPacket = 1500; |
|
64 const TInt KIPTagHeaderLength = 2; |
|
65 const TInt KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength; |
|
66 |
|
67 #endif //CONSTANTS_H |