diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-04-18 20:32:22 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-04-18 20:32:22 +0300 |
commit | c94c49114ca6c6dd342dad0db525050a154f7a0e (patch) | |
tree | 7ebb75e44f5d1a338aa1fe1a0171d5c7ddc9e61c /accel-pppd/session.c | |
parent | 09afd3a638be4c64aee0d36bbfa1e45bbaa2ec51 (diff) | |
download | accel-ppp-c94c49114ca6c6dd342dad0db525050a154f7a0e.tar.gz accel-ppp-c94c49114ca6c6dd342dad0db525050a154f7a0e.zip |
Revert "implemented session count limiting"
This reverts commit 9ea88bac7d5bf8fc5cf2d5f7d0a734ec7a9e6df6.
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index ca133ee2..730a57aa 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -34,7 +34,6 @@ static int conf_single_session = -1; static int conf_sid_source; static int conf_seq_save_timeout = 10; static const char *conf_seq_file; -int conf_max_sessions; pthread_rwlock_t __export ses_lock = PTHREAD_RWLOCK_INITIALIZER; __export LIST_HEAD(ses_list); @@ -77,10 +76,6 @@ void __export ap_session_set_ifindex(struct ap_session *ses) ses->acct_tx_packets_i = stats.tx_packets; ses->acct_rx_bytes_i = stats.rx_bytes; ses->acct_tx_bytes_i = stats.tx_bytes; - ses->acct_rx_bytes = 0; - ses->acct_tx_bytes = 0; - ses->acct_input_gigawords = 0; - ses->acct_output_gigawords = 0; } } @@ -516,12 +511,6 @@ static void load_config(void) conf_seq_file = conf_get_opt("common", "seq-file"); if (!conf_seq_file) conf_seq_file = "/var/lib/accel-ppp/seq"; - - opt = conf_get_opt("common", "max-sessions"); - if (opt) - conf_max_sessions = atoi(opt); - else - conf_max_sessions = 0; } static void init(void) |