equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This module defines the classes used for transferring data. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __VPNCONNMANDEFS_H__ |
|
21 #define __VPNCONNMANDEFS_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32std.h> |
|
25 #include <in_sock.h> |
|
26 #include <ipsecpolapi.h> |
|
27 |
|
28 /** |
|
29 * Real interface interface IAPId/NetworkId package definition |
|
30 * for C/S message parameters. VPN Nif name is added because this |
|
31 * information is passed to kmdserver too. |
|
32 */ |
|
33 class TRealConfig |
|
34 { |
|
35 public: |
|
36 inline TRealConfig() |
|
37 :iVpnIapId(0), iVpnNetId(0), iRealIapId(0), iRealNetId(0), iSnapId(0) |
|
38 {iVPNIfName.Zero(); } |
|
39 |
|
40 public: |
|
41 TUint32 iVpnIapId; |
|
42 TUint32 iVpnNetId; |
|
43 TUint32 iRealIapId; |
|
44 TUint32 iRealNetId; |
|
45 TUint32 iSnapId; |
|
46 TBuf<64> iVPNIfName; |
|
47 }; |
|
48 typedef TPckg<TRealConfig> TRealConfigPckg; |
|
49 |
|
50 /** |
|
51 * Address information package definition for passing addresses |
|
52 * in Client/Server message. |
|
53 */ |
|
54 class TVPNAddress |
|
55 { |
|
56 public: |
|
57 inline TVPNAddress() |
|
58 :iVPNIfAddr(), iVPNIfDNS1(), iVPNIfDNS2() |
|
59 {iVPNIfAddr.Zero(); iVPNIfDNS1.Zero(); iVPNIfDNS2.Zero(); } |
|
60 |
|
61 public: |
|
62 TInetAddr iVPNIfAddr; |
|
63 TInetAddr iVPNIfDNS1; |
|
64 TInetAddr iVPNIfDNS2; |
|
65 }; |
|
66 typedef TPckg<TVPNAddress> TVPNAddressPckg; |
|
67 |
|
68 |
|
69 #endif // __VPNCONNMANDEFS_H__ |