The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions
compose.h File Reference

EAP packet composition. More...

#include <stdbool.h>
#include "types.h"
#include "session.h"
#include "submodule.h"
+ Include dependency graph for compose.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  eap_packet_t
 Structure to hold EAP data. More...
 
struct  eap_round_t
 Contains a pair of request and response packets. More...
 

Functions

rlm_rcode_t eap_compose (eap_session_t *eap_session)
 
rlm_rcode_t eap_continue (eap_session_t *eap_session)
 
rlm_rcode_t eap_fail (eap_session_t *eap_session)
 
eap_round_teap_round_build (eap_session_t *eap_session, eap_packet_raw_t **eap_packet_p)
 
rlm_rcode_t eap_start (request_t *request, rlm_eap_method_t const methods[], bool ignore_unknown_types)
 
rlm_rcode_t eap_success (eap_session_t *eap_session)
 

Detailed Description

EAP packet composition.

Id
97a10aa5d7b3d010a0a6c62ab491025dcf2d3ad1

Definition in file compose.h.


Data Structure Documentation

◆ eap_packet_t

struct eap_packet_t

Structure to hold EAP data.

length = code + id + length + type + type.data = 1 + 1 + 2 + 1 + X

Definition at line 35 of file compose.h.

+ Collaboration diagram for eap_packet_t:
Data Fields
eap_code_t code
uint8_t id
size_t length
uint8_t * packet
eap_type_data_t type

◆ eap_round_t

struct eap_round_t

Contains a pair of request and response packets.

Helps with formulating/correlating requests to responses we've received.

Definition at line 48 of file compose.h.

+ Collaboration diagram for eap_round_t:
Data Fields
eap_packet_t * request Packet we will send to the peer.
eap_packet_t * response Packet we received from the peer.
bool set_request_id Whether the EAP-Method already set the next request ID.

Function Documentation

◆ eap_compose()

rlm_rcode_t eap_compose ( eap_session_t eap_session)

Definition at line 153 of file compose.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_continue()

rlm_rcode_t eap_continue ( eap_session_t eap_session)

Definition at line 483 of file compose.c.

+ Here is the call graph for this function:

◆ eap_fail()

rlm_rcode_t eap_fail ( eap_session_t eap_session)

Definition at line 494 of file compose.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_round_build()

eap_round_t* eap_round_build ( eap_session_t eap_session,
eap_packet_raw_t **  eap_packet_p 
)

Definition at line 548 of file compose.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_start()

rlm_rcode_t eap_start ( request_t request,
rlm_eap_method_t const  methods[],
bool  ignore_unknown_types 
)

Definition at line 291 of file compose.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_success()

rlm_rcode_t eap_success ( eap_session_t eap_session)

Definition at line 513 of file compose.c.

+ Here is the call graph for this function: