Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-eap.h
Go to the documentation of this file.
1
9
10#ifndef __PACKET_EAP_H__
11#define __PACKET_EAP_H__
12
13#include "ws_symbol_export.h"
14#include <wsutil/value_string.h>
15
16 /* http://www.iana.org/assignments/eap-numbers */
17#define EAP_REQUEST 1
18#define EAP_RESPONSE 2
19#define EAP_SUCCESS 3
20#define EAP_FAILURE 4
21#define EAP_INITIATE 5 /* [RFC5296] */
22#define EAP_FINISH 6 /* [RFC5296] */
23
24WS_DLL_PUBLIC const value_string eap_code_vals[];
25
26#define EAP_TYPE_ID 1
27#define EAP_TYPE_NOTIFY 2
28#define EAP_TYPE_NAK 3
29#define EAP_TYPE_MD5 4
30#define EAP_TYPE_GTC 6
31#define EAP_TYPE_TLS 13
32#define EAP_TYPE_LEAP 17
33#define EAP_TYPE_SIM 18
34#define EAP_TYPE_TTLS 21
35#define EAP_TYPE_AKA 23
36#define EAP_TYPE_PEAP 25
37#define EAP_TYPE_MSCHAPV2 26
38#define EAP_TYPE_MSAUTH_TLV 33
39#define EAP_TYPE_FAST 43
40#define EAP_TYPE_PAX 46
41#define EAP_TYPE_PSK 47
42#define EAP_TYPE_SAKE 48
43#define EAP_TYPE_IKEV2 49
44#define EAP_TYPE_AKA_PRIME 50
45#define EAP_TYPE_GPSK 51
46#define EAP_TYPE_TEAP 55
47#define EAP_TYPE_EXT 254
48
49WS_DLL_PUBLIC value_string_ext eap_type_vals_ext;
50
51#define SIM_START 10
52#define SIM_CHALLENGE 11
53#define SIM_NOTIFICATION 12
54#define SIM_RE_AUTHENTICATION 13
55#define SIM_CLIENT_ERROR 14
56
57WS_DLL_PUBLIC const value_string eap_sim_subtype_vals[];
58
59#define AKA_CHALLENGE 1
60#define AKA_AUTHENTICATION_REJECT 2
61#define AKA_SYNCHRONIZATION_FAILURE 4
62#define AKA_IDENTITY 5
63#define AKA_NOTIFICATION 12
64#define AKA_REAUTHENTICATION 13
65#define AKA_CLIENT_ERROR 14
66
67WS_DLL_PUBLIC const value_string eap_aka_subtype_vals[];
68
69#define MS_CHAP_V2_CHALLENGE 1
70#define MS_CHAP_V2_RESPONSE 2
71#define MS_CHAP_V2_SUCCESS 3
72#define MS_CHAP_V2_FAILURE 4
73#define MS_CHAP_V2_CHANGE_PASSWORD 7
74
75WS_DLL_PUBLIC const value_string eap_ms_chap_v2_opcode_vals[];
76
77typedef enum {
78 PROTO_DATA_EAP_VISITED = 1,
79 PROTO_DATA_EAP_DUPLICATE_ID,
80 PROTO_DATA_EAP_FRAME_STATE,
81 PROTO_DATA_EAP_FRAME_STATE_LEAP,
82 PROTO_DATA_EAP_TVB,
83} proto_data_eap;
84
85typedef struct _eap_vendor_context {
86 uint32_t vendor_type;
87 uint32_t vendor_id;
88 uint8_t eap_code;
89 uint8_t eap_identifier;
90} eap_vendor_context;
91
92extern bool dissect_eap_identity_3gpp(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, unsigned offset, unsigned size);
93
94#endif /* __PACKET_EAP_H__ */
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet-eap.h:85
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.