| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-eap.h
Go to the documentation of this file.
1
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_TLS 13
31#define EAP_TYPE_LEAP 17
32#define EAP_TYPE_SIM 18
33#define EAP_TYPE_TTLS 21
34#define EAP_TYPE_AKA 23
35#define EAP_TYPE_PEAP 25
36#define EAP_TYPE_MSCHAPV2 26
37#define EAP_TYPE_MSAUTH_TLV 33
38#define EAP_TYPE_FAST 43
39#define EAP_TYPE_PAX 46
40#define EAP_TYPE_PSK 47
41#define EAP_TYPE_SAKE 48
42#define EAP_TYPE_IKEV2 49
43#define EAP_TYPE_AKA_PRIME 50
44#define EAP_TYPE_GPSK 51
45#define EAP_TYPE_TEAP 55
46#define EAP_TYPE_EXT 254
47
48WS_DLL_PUBLIC value_string_ext eap_type_vals_ext;
49
50#define SIM_START 10
51#define SIM_CHALLENGE 11
52#define SIM_NOTIFICATION 12
53#define SIM_RE_AUTHENTICATION 13
54#define SIM_CLIENT_ERROR 14
55
56WS_DLL_PUBLIC const value_string eap_sim_subtype_vals[];
57
58#define AKA_CHALLENGE 1
59#define AKA_AUTHENTICATION_REJECT 2
60#define AKA_SYNCHRONIZATION_FAILURE 4
61#define AKA_IDENTITY 5
62#define AKA_NOTIFICATION 12
63#define AKA_REAUTHENTICATION 13
64#define AKA_CLIENT_ERROR 14
65
66WS_DLL_PUBLIC const value_string eap_aka_subtype_vals[];
67
68#define MS_CHAP_V2_CHALLENGE 1
69#define MS_CHAP_V2_RESPONSE 2
70#define MS_CHAP_V2_SUCCESS 3
71#define MS_CHAP_V2_FAILURE 4
72#define MS_CHAP_V2_CHANGE_PASSWORD 7
73
74WS_DLL_PUBLIC const value_string eap_ms_chap_v2_opcode_vals[];
75
76 typedef enum {
77 PROTO_DATA_EAP_DUPLICATE_ID,
78 PROTO_DATA_EAP_FRAME_STATE,
79 PROTO_DATA_EAP_TVB,
80} proto_data_eap;
81
82 typedef struct _eap_vendor_context {
83 uint32_t vendor_type;
84 uint32_t vendor_id;
85 uint8_t eap_code;
86 uint8_t eap_identifier;
87} eap_vendor_context;
88
89 extern bool dissect_eap_identity_3gpp(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, unsigned offset, unsigned size);
90
91#endif /* __PACKET_EAP_H__ */
_eap_vendor_context
Definition packet-eap.h:82
_packet_info
Definition packet_info.h:43
_proto_node
Definition proto.h:905
_value_string_ext
Extended metadata for a value_string array.
Definition value_string.h:325
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
tvbuff
Definition tvbuff-int.h:36
value_string.h