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_NOOB 56
48#define EAP_TYPE_EXT 254
49
50WS_DLL_PUBLIC value_string_ext eap_type_vals_ext;
51
52#define SIM_START 10
53#define SIM_CHALLENGE 11
54#define SIM_NOTIFICATION 12
55#define SIM_RE_AUTHENTICATION 13
56#define SIM_CLIENT_ERROR 14
57
58WS_DLL_PUBLIC const value_string eap_sim_subtype_vals[];
59
60#define AKA_CHALLENGE 1
61#define AKA_AUTHENTICATION_REJECT 2
62#define AKA_SYNCHRONIZATION_FAILURE 4
63#define AKA_IDENTITY 5
64#define AKA_NOTIFICATION 12
65#define AKA_REAUTHENTICATION 13
66#define AKA_CLIENT_ERROR 14
67
68WS_DLL_PUBLIC const value_string eap_aka_subtype_vals[];
69
70#define MS_CHAP_V2_CHALLENGE 1
71#define MS_CHAP_V2_RESPONSE 2
72#define MS_CHAP_V2_SUCCESS 3
73#define MS_CHAP_V2_FAILURE 4
74#define MS_CHAP_V2_CHANGE_PASSWORD 7
75
76WS_DLL_PUBLIC const value_string eap_ms_chap_v2_opcode_vals[];
77
78typedef enum {
79 PROTO_DATA_EAP_VISITED = 1,
80 PROTO_DATA_EAP_DUPLICATE_ID,
81 PROTO_DATA_EAP_FRAME_STATE,
82 PROTO_DATA_EAP_FRAME_STATE_LEAP,
83 PROTO_DATA_EAP_TVB,
84} proto_data_eap;
85
86typedef struct _eap_vendor_context {
87 uint32_t vendor_type;
88 uint32_t vendor_id;
89 uint8_t eap_code;
90 uint8_t eap_identifier;
91} eap_vendor_context;
92
93extern bool dissect_eap_identity_3gpp(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, unsigned offset, unsigned size);
94
95#endif /* __PACKET_EAP_H__ */
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet-eap.h:86
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.