The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
retry.c File Reference

Handle RFC standard retransmissions. More...

#include <freeradius-devel/util/retry.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/uint128.h>
+ Include dependency graph for retry.c:

Go to the source code of this file.

Functions

void fr_retry_init (fr_retry_t *r, fr_time_t now, fr_retry_config_t const *config)
 Initialize a retransmission counter. More...
 
fr_retry_state_t fr_retry_next (fr_retry_t *r, fr_time_t now)
 Initialize a retransmission counter. More...
 

Detailed Description

Handle RFC standard retransmissions.

Definition in file retry.c.

Function Documentation

◆ fr_retry_init()

void fr_retry_init ( fr_retry_t r,
fr_time_t  now,
fr_retry_config_t const *  config 
)

Initialize a retransmission counter.

Parameters
[in,out]rthe retransmission structure
nowwhen the retransmission starts
configthe counters to track. They shouldn't change while the retransmission is happening

Definition at line 36 of file retry.c.

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

◆ fr_retry_next()

fr_retry_state_t fr_retry_next ( fr_retry_t r,
fr_time_t  now 
)

Initialize a retransmission counter.

Parameters
[in,out]rthe retransmission structure
nowthe current time
Returns
  • FR_RETRTY_CONTINUE - continue retransmitting
  • FR_RETRY_MRC - stop, maximum retransmission count has been reached
  • FR_RETRY_MDR - stop, maximum retransmission duration has been reached.

Definition at line 108 of file retry.c.

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