wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Enumerations | Functions
ieee802_1x_cp.c File Reference

IEEE 802.1X-2010 Controlled Port of PAE state machine - CP state machine. More...

#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/defs.h"
#include "common/ieee802_1x_defs.h"
#include "utils/state_machine.h"
#include "ieee802_1x_kay.h"
#include "ieee802_1x_secy_ops.h"
#include "pae/ieee802_1x_cp.h"

Data Structures

struct  ieee802_1x_cp_sm
 

Macros

#define STATE_MACHINE_DATA   struct ieee802_1x_cp_sm
 
#define STATE_MACHINE_DEBUG_PREFIX   "CP"
 

Enumerations

enum  connect_type { PENDING, UNAUTHENTICATED, AUTHENTICATED, SECURE }
 

Functions

 SM_STATE (CP, INIT)
 
 SM_STATE (CP, CHANGE)
 
 SM_STATE (CP, ALLOWED)
 
 SM_STATE (CP, AUTHENTICATED)
 
 SM_STATE (CP, SECURED)
 
 SM_STATE (CP, RECEIVE)
 
 SM_STATE (CP, RECEIVING)
 
 SM_STATE (CP, READY)
 
 SM_STATE (CP, TRANSMIT)
 
 SM_STATE (CP, TRANSMITTING)
 
 SM_STATE (CP, ABANDON)
 
 SM_STATE (CP, RETIRE)
 
 SM_STEP (CP)
 CP state machine handler entry.
 
struct ieee802_1x_cp_smieee802_1x_cp_sm_init (struct ieee802_1x_kay *kay, struct ieee802_1x_cp_conf *pcp_conf)
 ieee802_1x_cp_sm_init -
 
void ieee802_1x_cp_sm_deinit (struct ieee802_1x_cp_sm *sm)
 ieee802_1x_cp_sm_deinit -
 
void ieee802_1x_cp_connect_pending (void *cp_ctx)
 ieee802_1x_cp_connect_pending
 
void ieee802_1x_cp_connect_unauthenticated (void *cp_ctx)
 ieee802_1x_cp_connect_unauthenticated
 
void ieee802_1x_cp_connect_authenticated (void *cp_ctx)
 ieee802_1x_cp_connect_authenticated
 
void ieee802_1x_cp_connect_secure (void *cp_ctx)
 ieee802_1x_cp_connect_secure
 
void ieee802_1x_cp_signal_chgdserver (void *cp_ctx)
 ieee802_1x_cp_set_chgdserver -
 
void ieee802_1x_cp_set_electedself (void *cp_ctx, Boolean status)
 ieee802_1x_cp_set_electedself -
 
void ieee802_1x_cp_set_authorizationdata (void *cp_ctx, u8 *pdata, int len)
 ieee802_1x_cp_set_authorizationdata -
 
void ieee802_1x_cp_set_ciphersuite (void *cp_ctx, void *pid)
 ieee802_1x_cp_set_ciphersuite -
 
void ieee802_1x_cp_set_offset (void *cp_ctx, enum confidentiality_offset offset)
 ieee802_1x_cp_set_offset -
 
void ieee802_1x_cp_signal_newsak (void *cp_ctx)
 ieee802_1x_cp_signal_newsak -
 
void ieee802_1x_cp_set_distributedki (void *cp_ctx, const struct ieee802_1x_mka_ki *dki)
 ieee802_1x_cp_set_distributedki -
 
void ieee802_1x_cp_set_distributedan (void *cp_ctx, u8 an)
 ieee802_1x_cp_set_distributedan -
 
void ieee802_1x_cp_set_usingreceivesas (void *cp_ctx, Boolean status)
 ieee802_1x_cp_set_usingreceivesas -
 
void ieee802_1x_cp_set_allreceiving (void *cp_ctx, Boolean status)
 ieee802_1x_cp_set_allreceiving -
 
void ieee802_1x_cp_set_servertransmitting (void *cp_ctx, Boolean status)
 ieee802_1x_cp_set_servertransmitting -
 
void ieee802_1x_cp_set_usingtransmitas (void *cp_ctx, Boolean status)
 ieee802_1x_cp_set_usingtransmitsas -
 
void ieee802_1x_cp_sm_step (void *cp_ctx)
 Advance EAPOL state machines. More...
 

Detailed Description

IEEE 802.1X-2010 Controlled Port of PAE state machine - CP state machine.

Function Documentation

void ieee802_1x_cp_sm_step ( void *  cp_ctx)

Advance EAPOL state machines.

Parameters
smEAPOL state machine

This function is called to advance CP state machines after any change that could affect their state.