27 RCSIDH(state_h,
"$Id: f879e6084fd61064e85048b62d2c753a073e7fd9 $")
uint64_t fr_state_entries_created(fr_state_tree_t *state)
Return number of entries created.
fr_state_tree_t * fr_state_tree_init(TALLOC_CTX *ctx, uint32_t max_sessions, uint32_t timeout)
Initialise a new state tree.
void fr_state_to_request(fr_state_tree_t *state, REQUEST *request, RADIUS_PACKET *packet)
Copy a pointer to the head of the list of state VALUE_PAIRs (and their ctx) into the request...
void fr_state_discard(fr_state_tree_t *state, REQUEST *request, RADIUS_PACKET *original)
Called when sending an Access-Accept/Access-Reject to discard state information.
uint32_t max_sessions
Maximum number of sessions we track.
uint32_t fr_state_entries_tracked(fr_state_tree_t *state)
Return number of entries we're currently tracking.
bool fr_request_to_state(fr_state_tree_t *state, REQUEST *request, RADIUS_PACKET *original, RADIUS_PACKET *packet)
Transfer ownership of the state VALUE_PAIRs and ctx, back to a state entry.
uint64_t fr_state_entries_timeout(fr_state_tree_t *state)
Return number of entries that timed out.
fr_state_tree_t * global_state