All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
stats.h File Reference

Track overarching 'state' of the authentication session over multiple packets. More...

Go to the source code of this file.

Data Structures

struct  fr_stats_ema_t
 
struct  fr_stats_t
 

Macros

#define FR_STATS_INC(_x, _y)   radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++;
 
#define FR_STATS_TYPE_INC(_x)   _x++
 

Typedefs

typedef struct fr_stats_ema_t fr_stats_ema_t
 
typedef struct fr_stats_t fr_stats_t
 
typedef uint32_t fr_uint_t
 

Functions

void radius_stats_ema (fr_stats_ema_t *ema, struct timeval *start, struct timeval *end)
 
void radius_stats_init (int flag)
 
void request_stats_final (REQUEST *request)
 
void request_stats_reply (REQUEST *request)
 

Variables

fr_stats_t proxy_acct_stats
 
fr_stats_t proxy_auth_stats
 
fr_stats_t proxy_coa_stats
 
fr_stats_t proxy_dsc_stats
 
fr_stats_t radius_acct_stats
 
fr_stats_t radius_auth_stats
 
fr_stats_t radius_coa_stats
 
fr_stats_t radius_dsc_stats
 

Detailed Description

Track overarching 'state' of the authentication session over multiple packets.

Structures and functions for statistics.

Id:
f879e6084fd61064e85048b62d2c753a073e7fd9
Id:
dfec96cdf4412e2f9e31d33ffa07ee3b978400d6

Definition in file stats.h.


Data Structure Documentation

struct fr_stats_ema_t

Definition at line 57 of file stats.h.

Data Fields
uint32_t ema1
uint32_t ema10
uint32_t f1
uint32_t f10
uint32_t window
struct fr_stats_t

Definition at line 39 of file stats.h.

Data Fields
fr_uint_t elapsed[8]
time_t last_packet
fr_uint_t total_access_accepts
fr_uint_t total_access_challenges
fr_uint_t total_access_rejects
fr_uint_t total_bad_authenticators
fr_uint_t total_dup_requests
fr_uint_t total_invalid_requests
fr_uint_t total_malformed_requests
fr_uint_t total_no_records
fr_uint_t total_packets_dropped
fr_uint_t total_requests
fr_uint_t total_responses
fr_uint_t total_timeouts
fr_uint_t total_unknown_types

Macro Definition Documentation

#define FR_STATS_INC (   _x,
  _y 
)    radius_ ## _x ## _stats._y++;if (listener) listener->stats._y++;if (client) client->_x._y++;

Definition at line 89 of file stats.h.

#define FR_STATS_TYPE_INC (   _x)    _x++

Definition at line 90 of file stats.h.

Typedef Documentation

typedef struct fr_stats_t fr_stats_t
typedef uint32_t fr_uint_t

Definition at line 35 of file stats.h.

Function Documentation

void radius_stats_ema ( fr_stats_ema_t ema,
struct timeval *  start,
struct timeval *  end 
)

Definition at line 841 of file stats.c.

void radius_stats_init ( int  flag)

Definition at line 831 of file stats.c.

+ Here is the caller graph for this function:

void request_stats_final ( REQUEST request)

Definition at line 110 of file stats.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void request_stats_reply ( REQUEST request)

Definition at line 481 of file stats.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

fr_stats_t proxy_acct_stats

Definition at line 53 of file stats.c.

fr_stats_t proxy_auth_stats

Definition at line 51 of file stats.c.

fr_stats_t proxy_coa_stats

Definition at line 56 of file stats.c.

fr_stats_t proxy_dsc_stats

Definition at line 57 of file stats.c.

fr_stats_t radius_acct_stats

Definition at line 43 of file stats.c.

fr_stats_t radius_auth_stats

Definition at line 41 of file stats.c.

fr_stats_t radius_coa_stats

Definition at line 46 of file stats.c.

fr_stats_t radius_dsc_stats

Definition at line 47 of file stats.c.