diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-11-15 19:35:33 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-11-15 20:43:28 +0300 |
commit | 1cfae5217776e8f527b9529e19e22730c5977d66 (patch) | |
tree | 0ea080fedbda83eb2b7bf82fe23168388262dbfd /accel-pptpd/radius/radius.c | |
parent | b85986e561d4fc6532c0666e38014b51b66f485a (diff) | |
download | accel-ppp-1cfae5217776e8f527b9529e19e22730c5977d66.tar.gz accel-ppp-1cfae5217776e8f527b9529e19e22730c5977d66.zip |
log: implemented log_tcp logging target which sends logs to specified host over tcp/ip
radius: implemented accounting interim update timeout
Diffstat (limited to 'accel-pptpd/radius/radius.c')
-rw-r--r-- | accel-pptpd/radius/radius.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pptpd/radius/radius.c b/accel-pptpd/radius/radius.c index 3c885d89..fd3cd1e1 100644 --- a/accel-pptpd/radius/radius.c +++ b/accel-pptpd/radius/radius.c @@ -24,6 +24,7 @@ int conf_max_try = 3; int conf_timeout = 3; +int conf_acct_timeout = 600; char *conf_nas_identifier = "accel-pptpd"; in_addr_t conf_nas_ip_address; in_addr_t conf_gw_ip_address; @@ -382,6 +383,10 @@ static void __init radius_init(void) if (opt && atoi(opt) > 0) conf_timeout = atoi(opt); + opt = conf_get_opt("radius", "acct-timeout"); + if (opt && atoi(opt) > 0) + conf_acct_timeout = atoi(opt); + opt = conf_get_opt("radius", "verbose"); if (opt && atoi(opt) > 0) conf_verbose = 1; |