diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-12-24 19:10:38 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-12-24 19:10:38 +0100 |
commit | 553803f445185da2ac08baa7c034fada8032c3bd (patch) | |
tree | 694ae5d99d5f0b76dc0f56bff85814bf836e0adf /etc/inc | |
parent | 046d253a34d74c794d7ed44b241c79a01fe86b20 (diff) | |
download | pfsense-553803f445185da2ac08baa7c034fada8032c3bd.zip pfsense-553803f445185da2ac08baa7c034fada8032c3bd.tar.gz |
Correctly call function for retrieving stats from ipfw. Fixes #4131
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 413b108..a44a993 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1614,7 +1614,7 @@ function getVolume($ip, $mac = NULL) { // Initialize vars properly, since we don't want NULL vars $volume['input_pkts'] = $volume['input_bytes'] = $volume['output_pkts'] = $volume['output_bytes'] = 0 ; - $ipfw = pfSense_ipfw_getTablestats($cpzoneid, 1, $ip, $mac); + $ipfw = pfSense_ipfw_getTablestats($cpzoneid, IP_FW_TABLE_XLISTENTRY, 1, $ip, $mac); if (is_array($ipfw)) { if ($reverse) { $volume['output_pkts'] = $ipfw['packets']; @@ -1626,7 +1626,7 @@ function getVolume($ip, $mac = NULL) { } } - $ipfw = pfSense_ipfw_getTablestats($cpzoneid, 2, $ip); + $ipfw = pfSense_ipfw_getTablestats($cpzoneid, IP_FW_TABLE_XLISTENTRY, 2, $ip, $mac); if (is_array($ipfw)) { if ($reverse) { $volume['input_pkts'] = $ipfw['packets']; |