eap_peer_fsm.c File Reference

EAP peer state machine. More...

Go to the source code of this file.

Macros

#define TRACE_LEVEL   SUPPLICANT_TRACE_LEVEL
 

Functions

void eapPeerInitFsm (SupplicantContext *context)
 EAP peer state machine initialization. More...
 
void eapPeerFsm (SupplicantContext *context)
 EAP peer state machine implementation. More...
 
void eapPeerChangeState (SupplicantContext *context, EapPeerState newState)
 Update EAP peer state. More...
 

Variables

const EapParamName eapPeerStates []
 

Detailed Description

EAP peer state machine.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2022-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneEAP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file eap_peer_fsm.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SUPPLICANT_TRACE_LEVEL

Definition at line 32 of file eap_peer_fsm.c.

Function Documentation

◆ eapPeerChangeState()

void eapPeerChangeState ( SupplicantContext context,
EapPeerState  newState 
)

Update EAP peer state.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]newStateNew state to switch to

Definition at line 317 of file eap_peer_fsm.c.

◆ eapPeerFsm()

void eapPeerFsm ( SupplicantContext context)

EAP peer state machine implementation.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 82 of file eap_peer_fsm.c.

◆ eapPeerInitFsm()

void eapPeerInitFsm ( SupplicantContext context)

EAP peer state machine initialization.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 70 of file eap_peer_fsm.c.

Variable Documentation

◆ eapPeerStates

const EapParamName eapPeerStates[]
Initial value:
=
{
{EAP_PEER_STATE_DISABLED, "DISABLED"},
{EAP_PEER_STATE_INITIALIZE, "INITIALIZE"},
{EAP_PEER_STATE_RECEIVED, "RECEIVED"},
{EAP_PEER_STATE_METHOD, "METHOD"},
{EAP_PEER_STATE_GET_METHOD, "GET_METHOD"},
{EAP_PEER_STATE_IDENTITY, "IDENTITY"},
{EAP_PEER_STATE_NOTIFICATION, "NOTIFICATION"},
{EAP_PEER_STATE_RETRANSMIT, "RETRANSMIT"},
{EAP_PEER_STATE_DISCARD, "DISCARD"},
{EAP_PEER_STATE_SEND_RESPONSE, "SEND_RESPONSE"},
{EAP_PEER_STATE_SUCCESS, "SUCCESS"},
}
@ EAP_PEER_STATE_METHOD
Definition: eap_peer_fsm.h:58
@ EAP_PEER_STATE_GET_METHOD
Definition: eap_peer_fsm.h:59
@ EAP_PEER_STATE_RETRANSMIT
Definition: eap_peer_fsm.h:62
@ EAP_PEER_STATE_IDLE
Definition: eap_peer_fsm.h:56
@ EAP_PEER_STATE_SEND_RESPONSE
Definition: eap_peer_fsm.h:64
@ EAP_PEER_STATE_NOTIFICATION
Definition: eap_peer_fsm.h:61
@ EAP_PEER_STATE_IDENTITY
Definition: eap_peer_fsm.h:60
@ EAP_PEER_STATE_INITIALIZE
Definition: eap_peer_fsm.h:55
@ EAP_PEER_STATE_SUCCESS
Definition: eap_peer_fsm.h:65
@ EAP_PEER_STATE_DISCARD
Definition: eap_peer_fsm.h:63
@ EAP_PEER_STATE_FAILURE
Definition: eap_peer_fsm.h:66
@ EAP_PEER_STATE_DISABLED
Definition: eap_peer_fsm.h:54
@ EAP_PEER_STATE_RECEIVED
Definition: eap_peer_fsm.h:57

Definition at line 47 of file eap_peer_fsm.c.