The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions
id.c File Reference

Functions to allocate 8-bit IDs for a particular socket. More...

#include <freeradius-devel/radius/id.h>
+ Include dependency graph for id.c:

Go to the source code of this file.

Data Structures

struct  fr_radius_id_s
 

Functions

fr_radius_id_tfr_radius_id_alloc (TALLOC_CTX *ctx)
 Allocate a tracking structure for one packet code. More...
 
fr_radius_id_ctx_tfr_radius_id_find (fr_radius_id_t *track, int id)
 
int fr_radius_id_force (fr_radius_id_t *track, int id)
 Forces the next ID to be the given one. More...
 
fr_radius_id_ctx_tfr_radius_id_pop (fr_radius_id_t *track, fr_packet_t *packet)
 Allocate an ID for a packet, using LRU. More...
 
void fr_radius_id_push (fr_radius_id_t *track, fr_packet_t const *packet)
 De-allocate an ID for a packet, using LRU. More...
 

Detailed Description

Functions to allocate 8-bit IDs for a particular socket.

Id
170d9d103bbae2f33781296e65eac7197f07f076

Definition in file id.c.


Data Structure Documentation

◆ fr_radius_id_s

struct fr_radius_id_s

Definition at line 29 of file id.c.

+ Collaboration diagram for fr_radius_id_s:
Data Fields
int free_end
int free_ids[256]
int free_start
fr_radius_id_ctx_t id[256] pointers to request / reply data
int num_free_ids number of used IDs

Function Documentation

◆ fr_radius_id_alloc()

fr_radius_id_t* fr_radius_id_alloc ( TALLOC_CTX *  ctx)

Allocate a tracking structure for one packet code.

Definition at line 45 of file id.c.

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

◆ fr_radius_id_find()

fr_radius_id_ctx_t* fr_radius_id_find ( fr_radius_id_t track,
int  id 
)

Definition at line 139 of file id.c.

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

◆ fr_radius_id_force()

int fr_radius_id_force ( fr_radius_id_t track,
int  id 
)

Forces the next ID to be the given one.

Definition at line 150 of file id.c.

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

◆ fr_radius_id_pop()

fr_radius_id_ctx_t* fr_radius_id_pop ( fr_radius_id_t track,
fr_packet_t packet 
)

Allocate an ID for a packet, using LRU.

Definition at line 89 of file id.c.

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

◆ fr_radius_id_push()

void fr_radius_id_push ( fr_radius_id_t track,
fr_packet_t const *  packet 
)

De-allocate an ID for a packet, using LRU.

Definition at line 118 of file id.c.

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