The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Boxed value structures and functions to manipulate them. More...
#include <freeradius-devel/util/time.h>
Go to the source code of this file.
Data Structures | |
struct | fr_retry_config_t |
struct | fr_retry_t |
Macros | |
#define | RETRY_INIT { fr_time_delta_wrap(0), fr_time_delta_wrap(0), fr_time_delta_wrap(0), 0 } |
Enumerations | |
enum | fr_retry_state_t { FR_RETRY_CONTINUE = 0 , FR_RETRY_MRC , FR_RETRY_MRD } |
Functions | |
void | fr_retry_init (fr_retry_t *r, fr_time_t now, fr_retry_config_t const *config) |
Initialize a retransmission counter. | |
fr_retry_state_t | fr_retry_next (fr_retry_t *r, fr_time_t now) |
Initialize a retransmission counter. | |
Boxed value structures and functions to manipulate them.
Definition in file retry.h.
struct fr_retry_config_t |
Data Fields | ||
---|---|---|
fr_time_delta_t | irt | Initial transmission time. |
uint32_t | mrc | Maximum retransmission count. |
fr_time_delta_t | mrd | Maximum retransmission duration. |
fr_time_delta_t | mrt | Maximum retransmission time. |
struct fr_retry_t |
Data Fields | ||
---|---|---|
fr_retry_config_t const * | config | master configuration |
uint32_t | count | number of sent packets |
fr_time_t | end | when we will end the retransmissions |
fr_time_t | next | when the next timer should be set |
uint32_t | replies | number of responses received. |
fr_time_delta_t | rt | retransmit interval |
fr_time_t | start | when we started the retransmission |
fr_retry_state_t | state | so callers can see what state it's in. |
fr_time_t | updated | last update, really a cached "now". |
#define RETRY_INIT { fr_time_delta_wrap(0), fr_time_delta_wrap(0), fr_time_delta_wrap(0), 0 } |
enum fr_retry_state_t |
void fr_retry_init | ( | fr_retry_t * | r, |
fr_time_t | now, | ||
fr_retry_config_t const * | config | ||
) |
Initialize a retransmission counter.
[in,out] | r | the retransmission structure |
now | when the retransmission starts | |
config | the counters to track. They shouldn't change while the retransmission is happening |
Definition at line 36 of file retry.c.
fr_retry_state_t fr_retry_next | ( | fr_retry_t * | r, |
fr_time_t | now | ||
) |
Initialize a retransmission counter.
[in,out] | r | the retransmission structure |
now | the current time |
Definition at line 108 of file retry.c.