26 RCSIDH(radius_id_h,
"$Id: badc5703e37123d6b4d96e406194b41add796bea $")
28 #include <freeradius-devel/radius/radius.h>
59 if (!codes[code])
return -1;
89 if (!codes[code])
return NULL;
99 if (!codes[code])
return -1;
@ FR_RADIUS_CODE_MAX
Maximum possible protocol code.
void fr_radius_id_push(fr_radius_id_t *track, fr_packet_t const *packet)
De-allocate an ID for a packet, using LRU.
static void fr_radius_code_id_push(fr_radius_code_id_t codes, fr_packet_t const *packet)
static fr_radius_id_ctx_t * fr_radius_code_id_pop(fr_radius_code_id_t codes, fr_packet_t *packet)
void * retry_ctx
to find the retry information
void * request_ctx
for the application to track
fr_packet_t * packet
outgoing packet
fr_packet_t * response
response to outgoing packet
int fr_radius_id_force(fr_radius_id_t *track, int id)
Forces the next ID to be the given one.
static int fr_radius_code_id_alloc(TALLOC_CTX *ctx, fr_radius_code_id_t codes, int code)
static fr_radius_id_ctx_t * fr_radius_code_id_find(fr_radius_code_id_t codes, int code, int id)
fr_radius_id_t * fr_radius_code_id_t[FR_RADIUS_CODE_MAX]
fr_radius_id_t * fr_radius_id_alloc(TALLOC_CTX *ctx)
Allocate a tracking structure for one packet code.
fr_radius_id_ctx_t * fr_radius_id_find(fr_radius_id_t *track, int id)
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.
static int fr_radius_code_id_force(fr_radius_code_id_t codes, int code, int id)
unsigned int code
Packet code (type).