diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-27 08:27:39 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-27 08:27:39 +0300 |
commit | 673bea74d2beb8d4260355f928499230c7ff9b17 (patch) | |
tree | 4b5474b9623f0b6f5a8dbdde48f1dc906fdd322e /accel-pppd/radius/radius_p.h | |
parent | 7f8d3e240fe9544b22846ea05b09515922d1de57 (diff) | |
download | accel-ppp-673bea74d2beb8d4260355f928499230c7ff9b17.tar.gz accel-ppp-673bea74d2beb8d4260355f928499230c7ff9b17.zip |
radius: extended statistics calculation
Diffstat (limited to 'accel-pppd/radius/radius_p.h')
-rw-r--r-- | accel-pppd/radius/radius_p.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index e539dd8b..32acd497 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -3,6 +3,7 @@ #include <netinet/in.h> #include <pthread.h> +#include <stdarg.h> #include "triton.h" #include "radius.h" @@ -57,6 +58,7 @@ struct rad_req_t struct radius_pd_t *rpd; }; + extern int conf_max_try; extern int conf_timeout; extern int conf_acct_timeout; @@ -119,5 +121,25 @@ int rad_packet_send(struct rad_packet_t *pck, int fd, struct sockaddr_in *addr); void dm_coa_cancel(struct radius_pd_t *pd); +struct stat_accm_t; +struct stat_accm_t *stat_accm_create(unsigned int time); +void stat_accm_add(struct stat_accm_t *, unsigned int); +unsigned long stat_accm_get_cnt(struct stat_accm_t *); +unsigned long stat_accm_get_avg(struct stat_accm_t *); + +extern struct stat_accm_t *stat_auth_lost_1m; +extern struct stat_accm_t *stat_auth_lost_5m; +extern struct stat_accm_t *stat_auth_query_1m; +extern struct stat_accm_t *stat_auth_query_5m; + +extern struct stat_accm_t *stat_acct_lost_1m; +extern struct stat_accm_t *stat_acct_lost_5m; +extern struct stat_accm_t *stat_acct_query_1m; +extern struct stat_accm_t *stat_acct_query_5m; + +extern struct stat_accm_t *stat_interim_lost_1m; +extern struct stat_accm_t *stat_interim_lost_5m; +extern struct stat_accm_t *stat_interim_query_1m; +extern struct stat_accm_t *stat_interim_query_5m; #endif |