|
1 // Copyright (c) 2007-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 @publishedPartner |
|
19 @released |
|
20 */ |
|
21 |
|
22 #ifndef __NAPT_INTERFACE_H__ |
|
23 #define __NAPT_INTERFACE_H__ |
|
24 |
|
25 |
|
26 const TUint KSolNapt = 0x10283515; |
|
27 |
|
28 const TUint KSoNaptSetup =1; |
|
29 const TUint KSoNaptUplink =2; |
|
30 |
|
31 #ifdef SYMBIAN_NETWORKING_ADDRESS_PROVISION |
|
32 const TUint KSoNaptProvision =3; |
|
33 #endif //SYMBIAN_NETWORKING_ADDRESS_PROVISION |
|
34 |
|
35 class TInterfaceLockInfo |
|
36 /**This is stack based class for information required by napt.This class will be scoped as internal |
|
37 * teconology.The information provided by napt will use it. |
|
38 */ |
|
39 |
|
40 { |
|
41 public: |
|
42 |
|
43 // IAP of the public interface. |
|
44 TUint32 iPublicIap; |
|
45 |
|
46 //IAP of the private interface. |
|
47 TUint32 iPrivateIap; |
|
48 |
|
49 //Private interface IP |
|
50 TInetAddr iPrivateIp; |
|
51 |
|
52 //Public interface IP |
|
53 TInetAddr iPublicIp; |
|
54 |
|
55 //netmask length need to translated.Netmask will be 8 for class A. 16 for class B and 24 class C. |
|
56 //this is specificaly for napt. Others can use it accordingly |
|
57 TUint iNetmaskLength; |
|
58 //Provisioned IP |
|
59 TUint32 iProvisionedIp; |
|
60 |
|
61 //Interface Index |
|
62 TUint32 iIfIndex; |
|
63 |
|
64 #ifdef SYMBIAN_NETWORKING_ADDRESS_PROVISION |
|
65 //To enable or disable uplink access. |
|
66 TBool iUplinkAccess; |
|
67 #endif |
|
68 |
|
69 }; |
|
70 |
|
71 class TUplinkInfo |
|
72 { |
|
73 public: |
|
74 //IAP of the private interface. |
|
75 TUint32 iPrivateIap; |
|
76 // IAP of the public interface. |
|
77 TUint32 iPublicIap; |
|
78 }; |
|
79 #ifdef SYMBIAN_NETWORKING_ADDRESS_PROVISION |
|
80 class TIpForwardingInfo |
|
81 /**This class is for provisioning NAPT. It is used only by control application. |
|
82 */ |
|
83 { |
|
84 public: |
|
85 //To enable or disable uplink access. |
|
86 TBool iUplinkAccess; |
|
87 //private iap settings to be enabled |
|
88 TUint32 iPrivateIap; |
|
89 }; |
|
90 #endif //SYMBIAN_NETWORKING_ADDRESS_PROVISION |
|
91 #endif //__NAPT_INTERFACE_H__ |