diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-13 13:16:06 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-13 13:16:06 +0400 |
commit | ec41e172a9da0de7cf5c28027928c698d0d1ebf8 (patch) | |
tree | 017eb8e5a65e421ac4ccb93039ffafedea2873b2 /accel-pppd/radius/radius_p.h | |
parent | e7b98bc79bf8e01d6e2897a95502827ce2a83e7d (diff) | |
download | accel-ppp-ec41e172a9da0de7cf5c28027928c698d0d1ebf8.tar.gz accel-ppp-ec41e172a9da0de7cf5c28027928c698d0d1ebf8.zip |
radius: introduced weight and backup per-server options
New options are applied to server option as server=...[,weight=x][,backup]
Weight is used for multi-server configurations (larger weight takes more users).
Backup is used to mark backup server f.e. server which will be used only if all other servers are failed.
Diffstat (limited to 'accel-pppd/radius/radius_p.h')
-rw-r--r-- | accel-pppd/radius/radius_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index 4654c78..f626213 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -82,6 +82,7 @@ struct rad_server_t { time_t fail_time; int conf_fail_time; int timeout_cnt; + double weight; pthread_mutex_t lock; unsigned long stat_auth_sent; @@ -107,6 +108,7 @@ struct rad_server_t { struct stat_accm_t *stat_interim_query_1m; struct stat_accm_t *stat_interim_query_5m; + int backup:1; int starting:1; int acct_on:1; int need_free:1; |