From 553803f445185da2ac08baa7c034fada8032c3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Wed, 24 Dec 2014 19:10:38 +0100 Subject: Correctly call function for retrieving stats from ipfw. Fixes #4131 --- etc/inc/captiveportal.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc') 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']; -- cgit v1.1