From b2f9d7066553be2b74b048fcf65417eaadb44c60 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Tue, 27 Dec 2011 14:59:07 +0400 Subject: radius: implemented simultaneous requests limiting --- accel-pppd/radius/radius_p.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'accel-pppd/radius/radius_p.h') diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index e038aa84..7422bbf3 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -70,14 +70,13 @@ struct rad_server_t { struct list_head entry; int id; - in_addr_t auth_addr; + in_addr_t addr; + char *secret; int auth_port; - char *auth_secret; - in_addr_t acct_addr; int acct_port; - char *acct_secret; - int max_req_cnt; + int req_limit; int req_cnt; + int queue_cnt; struct list_head req_queue; int client_cnt[2]; time_t fail_time; @@ -133,6 +132,7 @@ extern int conf_dm_coa_port; extern int conf_acct_interim_interval; extern int conf_accounting; extern int conf_fail_time; +extern int conf_req_limit; int rad_check_nas_pack(struct rad_packet_t *pack); struct radius_pd_t *rad_find_session(const char *sessionid, const char *username, int port_id, in_addr_t ipaddr, const char *csid); -- cgit v1.2.3