|
1 /* |
|
2 * Copyright (c) 1999-2009 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: Security policy module payload structures |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_SECPOLPAYLOAD_H |
|
20 #define T_SECPOLPAYLOAD_H |
|
21 |
|
22 #include <ip4_hdr.h> |
|
23 #include <ip6_hdr.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class TInet6Options; |
|
27 class TInet6HeaderFragment; |
|
28 class TInet6HeaderRouting; |
|
29 class TInet6HeaderAH; |
|
30 class TInet6HeaderESP; |
|
31 class TInet6HeaderICMP; |
|
32 class TInet6HeaderTCP; |
|
33 class TInet6HeaderUDP; |
|
34 |
|
35 /** |
|
36 * THdrIP4 class. |
|
37 * Class for dumping IPv4 IP header. |
|
38 * |
|
39 * @lib internal (kmdserver.exe) |
|
40 */ |
|
41 class THdrIP4 : public TInet6HeaderIP4 |
|
42 { |
|
43 public: |
|
44 void Dump( TDes& aStr, TInt aLength ); |
|
45 TBool IsUnicast(); |
|
46 }; |
|
47 |
|
48 /** |
|
49 * THdrIP6 class. |
|
50 * Class for dumping IPv6 IP header. |
|
51 * |
|
52 * @lib internal (kmdserver.exe) |
|
53 */ |
|
54 class THdrIP6 : public TInet6HeaderIP |
|
55 { |
|
56 public: |
|
57 void Dump( TDes &aStr, TInt aLength ); |
|
58 TBool IsUnicast(); |
|
59 }; |
|
60 |
|
61 /** |
|
62 * Secpol payload. |
|
63 * Payload structure for reading message from Secpol reader. |
|
64 * |
|
65 * @lib internal (kmdserver.exe) |
|
66 */ |
|
67 class TSecpolPayload |
|
68 { |
|
69 public: |
|
70 TSecpolPayload( const TUint8* aPtr ); |
|
71 |
|
72 void Dump( TDes &aStr, TInt aLength, TInt aProtocol ); |
|
73 |
|
74 public: // data |
|
75 union |
|
76 { |
|
77 const TUint8* iRaw; |
|
78 const TInet6HeaderESP* iESP; |
|
79 const TInet6HeaderAH* iAH; |
|
80 const TInet6HeaderIP* iIP6; |
|
81 const TInet6HeaderIP4* iIP4; |
|
82 const TInet6HeaderTCP* iTCP; |
|
83 const TInet6HeaderUDP* iUDP; |
|
84 const TInet6HeaderICMP* iICMP; |
|
85 const TInet6Options* iOPT; |
|
86 const TInet6HeaderRouting* iRTH; |
|
87 const TInet6HeaderFragment* iFRH; |
|
88 }; |
|
89 }; |
|
90 |
|
91 #endif // T_SECPOLPAYLOAD_H |