9 #ifndef EAPOL_AUTH_SM_I_H 10 #define EAPOL_AUTH_SM_I_H 12 #include "common/defs.h" 13 #include "radius/radius.h" 17 typedef enum { ForceUnauthorized = 1, ForceAuthorized = 3, Auto = 2 }
19 typedef enum { Unauthorized = 2, Authorized = 1 } PortState;
20 typedef enum { Both = 0, In = 1 } ControlledDirection;
21 typedef unsigned int Counter;
32 u8 default_wep_key_idx;
48 PortState authPortStatus;
57 PortTypes portControl;
59 Boolean reAuthenticate;
65 enum { AUTH_PAE_INITIALIZE, AUTH_PAE_DISCONNECTED, AUTH_PAE_CONNECTING,
66 AUTH_PAE_AUTHENTICATING, AUTH_PAE_AUTHENTICATED,
67 AUTH_PAE_ABORTING, AUTH_PAE_HELD, AUTH_PAE_FORCE_AUTH,
68 AUTH_PAE_FORCE_UNAUTH, AUTH_PAE_RESTART } auth_pae_state;
73 unsigned int reAuthCount;
75 unsigned int quietPeriod;
76 #define AUTH_PAE_DEFAULT_quietPeriod 60 77 unsigned int reAuthMax;
78 #define AUTH_PAE_DEFAULT_reAuthMax 2 80 Counter authEntersConnecting;
81 Counter authEapLogoffsWhileConnecting;
82 Counter authEntersAuthenticating;
83 Counter authAuthSuccessesWhileAuthenticating;
84 Counter authAuthTimeoutsWhileAuthenticating;
85 Counter authAuthFailWhileAuthenticating;
86 Counter authAuthEapStartsWhileAuthenticating;
87 Counter authAuthEapLogoffWhileAuthenticating;
88 Counter authAuthReauthsWhileAuthenticated;
89 Counter authAuthEapStartsWhileAuthenticated;
90 Counter authAuthEapLogoffWhileAuthenticated;
93 enum { BE_AUTH_REQUEST, BE_AUTH_RESPONSE, BE_AUTH_SUCCESS,
94 BE_AUTH_FAIL, BE_AUTH_TIMEOUT, BE_AUTH_IDLE, BE_AUTH_INITIALIZE,
98 unsigned int serverTimeout;
99 #define BE_AUTH_DEFAULT_serverTimeout 30 101 Counter backendResponses;
102 Counter backendAccessChallenges;
103 Counter backendOtherRequestsToSupplicant;
104 Counter backendAuthSuccesses;
105 Counter backendAuthFails;
108 enum { REAUTH_TIMER_INITIALIZE, REAUTH_TIMER_REAUTHENTICATE
109 } reauth_timer_state;
111 unsigned int reAuthPeriod;
112 Boolean reAuthEnabled;
115 enum { AUTH_KEY_TX_NO_KEY_TRANSMIT, AUTH_KEY_TX_KEY_TRANSMIT
119 enum { KEY_RX_NO_KEY_RECEIVE, KEY_RX_KEY_RECEIVE } key_rx_state;
124 enum { CTRL_DIR_FORCE_BOTH, CTRL_DIR_IN_OR_BOTH } ctrl_dir_state;
126 ControlledDirection adminControlledDirections;
127 ControlledDirection operControlledDirections;
131 Counter dot1xAuthEapolFramesRx;
132 Counter dot1xAuthEapolFramesTx;
133 Counter dot1xAuthEapolStartFramesRx;
134 Counter dot1xAuthEapolLogoffFramesRx;
135 Counter dot1xAuthEapolRespIdFramesRx;
136 Counter dot1xAuthEapolRespFramesRx;
137 Counter dot1xAuthEapolReqIdFramesTx;
138 Counter dot1xAuthEapolReqFramesTx;
139 Counter dot1xAuthInvalidEapolFramesRx;
140 Counter dot1xAuthEapLengthErrorFramesRx;
141 Counter dot1xAuthLastEapolFrameVersion;
150 int radius_identifier;
160 struct wpabuf *radius_cui;
164 Boolean initializing;
173 u64 acct_multi_session_id;
Definition: eapol_auth_sm.h:17
struct radius_msg - RADIUS message structure for new and parsed messages
Definition: radius.c:21
struct eapol_state_machine - Per-Supplicant Authenticator state machines
Definition: eapol_auth_sm_i.h:39
Definition: eapol_auth_sm.h:63
struct eap_sm - EAP state machine data
Definition: eap_i.h:294
struct eapol_authenticator - Global EAPOL authenticator data
Definition: eapol_auth_sm_i.h:27