|
1 /* |
|
2 * Copyright (c) 2001-2006 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 the License "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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #if !defined(_GSMSIM_RETRANSMISSION_H_) |
|
22 #define _GSMSIM_RETRANSMISSION_H_ |
|
23 |
|
24 //#include "eap_am_memory.h" |
|
25 #include "eap_tools.h" |
|
26 #include "eap_am_export.h" |
|
27 #include "abs_eap_am_crypto.h" |
|
28 #include "eap_variable_data.h" |
|
29 |
|
30 /** |
|
31 * This class stores the information of re-transmission of EAP-packet. |
|
32 * @{ Add more comments. } |
|
33 */ |
|
34 class eap_core_retransmission_c |
|
35 { |
|
36 private: |
|
37 |
|
38 abs_eap_am_tools_c * const m_am_tools; |
|
39 |
|
40 eap_am_network_id_c *m_send_network_id; |
|
41 eap_buf_chain_wr_c *m_sent_packet; |
|
42 const u32_t m_header_offset; |
|
43 const u32_t m_data_length; |
|
44 |
|
45 bool m_is_valid; |
|
46 |
|
47 u32_t m_retransmission_time; |
|
48 u32_t m_retransmission_counter; |
|
49 |
|
50 eap_code_value_e m_eap_code; |
|
51 u8_t m_eap_identifier; |
|
52 eap_type_value_e m_eap_type; |
|
53 |
|
54 public: |
|
55 |
|
56 EAP_FUNC_IMPORT virtual ~eap_core_retransmission_c(); |
|
57 |
|
58 EAP_FUNC_IMPORT eap_core_retransmission_c( |
|
59 abs_eap_am_tools_c * const tools, |
|
60 const eap_am_network_id_c * const send_network_id, |
|
61 eap_buf_chain_wr_c * const sent_packet, |
|
62 const u32_t header_offset, |
|
63 const u32_t data_length, |
|
64 const u32_t retransmission_time, |
|
65 const u32_t retransmission_counter, |
|
66 const eap_code_value_e eap_code, |
|
67 const u8_t eap_identifier, |
|
68 const eap_type_value_e eap_type); |
|
69 |
|
70 EAP_FUNC_IMPORT bool get_is_valid() const; |
|
71 |
|
72 EAP_FUNC_IMPORT u32_t get_next_retransmission_counter(); |
|
73 |
|
74 EAP_FUNC_IMPORT u32_t get_retransmission_counter() const; |
|
75 |
|
76 EAP_FUNC_IMPORT u32_t get_next_retransmission_time(); |
|
77 |
|
78 EAP_FUNC_IMPORT eap_am_network_id_c *get_send_network_id(); |
|
79 |
|
80 EAP_FUNC_IMPORT eap_buf_chain_wr_c * get_sent_packet() const; |
|
81 |
|
82 EAP_FUNC_IMPORT u32_t get_header_offset() const; |
|
83 |
|
84 EAP_FUNC_IMPORT u32_t get_data_length() const; |
|
85 |
|
86 EAP_FUNC_IMPORT u32_t get_buffer_size() const; |
|
87 |
|
88 EAP_FUNC_IMPORT eap_code_value_e get_eap_code() const; |
|
89 |
|
90 EAP_FUNC_IMPORT u8_t get_eap_identifier() const; |
|
91 |
|
92 EAP_FUNC_IMPORT eap_type_value_e get_eap_type() const; |
|
93 }; |
|
94 |
|
95 |
|
96 #endif //#if !defined(_GSMSIM_RETRANSMISSION_H_) |
|
97 |
|
98 //-------------------------------------------------- |
|
99 |
|
100 |
|
101 |
|
102 // End. |