summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2011-03-25 08:59:29 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2011-03-25 08:59:29 -0300
commit152ab4d0c036889d5d983cef0f612c2dcf211e7b (patch)
tree2120aa2834d2b0218a8bede4629aaac4acfbd5ec /etc/inc/captiveportal.inc
parent54bdff758f68e2e1b1ebd42b8b0b629b68ed1a3d (diff)
parentd93ee937f2305f06148d972be92224a2a52ba9e5 (diff)
downloadpfsense-152ab4d0c036889d5d983cef0f612c2dcf211e7b.zip
pfsense-152ab4d0c036889d5d983cef0f612c2dcf211e7b.tar.gz
Merge remote-tracking branch 'mainline/master' into inc
Conflicts: etc/inc/interfaces.inc etc/inc/priv.defs.inc etc/inc/shaper.inc etc/inc/system.inc
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc15
1 files changed, 13 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 6535f54..0962cd8 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -684,7 +684,7 @@ EOD;
if ($reinit == false)
unlock($captiveportallck);
- /* filter on layer2 as well so we can check MAC addresses */
+ /* activate ipfw(4) so CP can work */
mwexec("/sbin/sysctl net.link.ether.ipfw=1");
return $cprules;
@@ -881,6 +881,17 @@ function captiveportal_disconnect($dbent, $radiusservers,$term_cause = 1,$stop_t
/* Release the ruleno so it can be reallocated to new clients. */
captiveportal_free_ipfw_ruleno($dbent[1]);
+
+ // XMLRPC Call over to the master Voucher node
+ $a_voucher = &$config['voucher'];
+ if(!empty($a_voucher['vouchersyncdbip'])) {
+ $syncip = $a_voucher['vouchersyncdbip'];
+ $syncport = $a_voucher['vouchersyncport'];
+ $syncpass = $a_voucher['vouchersyncpass'];
+ $vouchersyncusername = $a_voucher['vouchersyncusername'];
+ $remote_status = xmlrpc_sync_voucher_disconnect($dben, $syncip, $syncport, $syncpass, $vouchersyncusername, $term_cause, $stop_time);
+ }
+
}
/* remove a single client by sessionid */
@@ -1378,7 +1389,7 @@ function captiveportal_get_next_ipfw_ruleno($rulenos_start = 2000, $rulenos_rang
* and the out pipe ruleno + 1. This removes limitation that where present in
* previous version of the peruserbw.
*/
- if (isset($config['captiveportal']['peruserbw']))
+ if (isset($config['captiveportal']['peruserbw']) || $usebw == true)
$ridx++;
continue;
}
OpenPOWER on IntegriCloud