diff options
author | Kozlov Dmitry <dima@server> | 2011-08-24 18:43:02 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-24 18:43:02 +0400 |
commit | 9d4a4daad3221efefbdb2a6b98c301d75d9b23bc (patch) | |
tree | 32d3c206e2ee0b159f9589e327737c2f773665b3 /accel-pppd/radius/radius_p.h | |
parent | 52223ac31751a5ec0bd8be3beb3fdd0559353b54 (diff) | |
download | accel-ppp-xebd-9d4a4daad3221efefbdb2a6b98c301d75d9b23bc.tar.gz accel-ppp-xebd-9d4a4daad3221efefbdb2a6b98c301d75d9b23bc.zip |
radius: load balancing improvement
Diffstat (limited to 'accel-pppd/radius/radius_p.h')
-rw-r--r-- | accel-pppd/radius/radius_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index 1fecd88..f3f28e2 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -62,6 +62,7 @@ struct rad_req_t in_addr_t server_addr; int server_port; + int type; }; struct rad_server_t @@ -77,7 +78,7 @@ struct rad_server_t int max_req_cnt; int req_cnt; struct list_head req_queue; - int client_cnt; + int client_cnt[2]; time_t fail_time; int conf_fail_time; int timeout_cnt; @@ -148,10 +149,10 @@ 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 rad_server_t *rad_server_get(int); -void rad_server_put(struct rad_server_t *); +void rad_server_put(struct rad_server_t *, int); int rad_server_req_enter(struct rad_req_t *); void rad_server_req_exit(struct rad_req_t *); -int rad_server_realloc(struct rad_req_t *, int); +int rad_server_realloc(struct rad_req_t *); void rad_server_fail(struct rad_server_t *); void rad_server_timeout(struct rad_server_t *); void rad_server_reply(struct rad_server_t *); |