diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-08-14 17:13:38 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-08-14 17:13:38 +0000 |
commit | f9f71ad37706cbe37ebc8af34aa55c029369c075 (patch) | |
tree | df22e56700dc3b90c6d0f6ed7ded3ecda3f6dd87 /usr/local/captiveportal/radius_accounting.inc | |
parent | 74194bf7bb8c8c5783c7a48dfc5f81d4ba5feca7 (diff) | |
download | pfsense-f9f71ad37706cbe37ebc8af34aa55c029369c075.zip pfsense-f9f71ad37706cbe37ebc8af34aa55c029369c075.tar.gz |
* Convert captive portal rules to use tables. This reduces the number of rules ALOT.
* Make the peruserbw setting use tables also by taking advantage of the tablearg option.
* Convert statistics to use the new improvements of ipfw tables merged previously.
* Make the limit of users allowed around 25000 instead of 9999 of before.
NOTE: The only thing remaining for full optimization on ipfw(4) side is converting passthrumac and layer2 secure rules to tables aswell.
Diffstat (limited to 'usr/local/captiveportal/radius_accounting.inc')
-rw-r--r-- | usr/local/captiveportal/radius_accounting.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc index fb8ece3..bfd0247 100644 --- a/usr/local/captiveportal/radius_accounting.inc +++ b/usr/local/captiveportal/radius_accounting.inc @@ -157,7 +157,7 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius $radiusvendor = $config['captiveportal']['radiusvendor'] ? $config['captiveportal']['radiusvendor'] : null; $stop_time = (empty($stop_time)) ? time() : $stop_time; $session_time = $stop_time - $start_time; - $volume = getVolume($ruleno); + $volume = getVolume($clientip); $volume['input_bytes_radius'] = remainder($volume['input_bytes']); $volume['input_gigawords'] = gigawords($volume['input_bytes']); $volume['output_bytes_radius'] = remainder($volume['output_bytes']); @@ -306,4 +306,4 @@ function remainder($bytes) { } -?>
\ No newline at end of file +?> |