27RCSIDH(state_h,
"$Id: c274fdd4485d404bb33631feeb86c7994b1e3f96 $")
33#include <freeradius-devel/util/dict.h>
34#include <freeradius-devel/server/request.h>
35#include <freeradius-devel/server/cf_parse.h>
36#include <freeradius-devel/server/tmpl.h>
Defines a CONF_PAIR to C data type mapping.
static const conf_parser_t config[]
int fr_state_restore(fr_state_tree_t *state, request_t *request)
Copy a pointer to the head of the list of state fr_pair_ts (and their ctx) into the request.
void fr_state_discard_child(request_t *parent, void const *unique_ptr, int unique_int)
Remove state from a child.
void fr_state_discard(fr_state_tree_t *state, request_t *request)
Called when sending an Access-Accept/Access-Reject to discard state information.
void fr_state_store_in_parent(request_t *request, void const *unique_ptr, int unique_int)
Store subrequest's session-state list and persistable request data in its parent.
fr_time_delta_t timeout
idle timeout
uint32_t max_rounds
maximum number of rounds before we give up
uint8_t server_id
for mangling State
int fr_state_store(fr_state_tree_t *state, request_t *request)
Transfer ownership of the state fr_pair_ts and ctx, back to a state entry.
tmpl_t * dedup_key
for tracking misbehaving supplicants
uint32_t context_id
internal number to help keep state trees separate
void fr_state_restore_from_parent(request_t *child, void const *unique_ptr, int unique_int)
Restore subrequest data from a parent request.
const conf_parser_t state_session_config[]
fr_state_tree_t * fr_state_tree_init(TALLOC_CTX *ctx, fr_dict_attr_t const *da, fr_state_config_t const *config)
Initialise a new state tree.
uint32_t max_sessions
maximum number of sessions
A time delta, a difference in time measured in nanoseconds.