Revision 4bdfa5dd
Added by Phil Davis over 12 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
1241 | 1241 |
$ifinfo['inbytespass'] = $in4_pass + $in6_pass; |
1242 | 1242 |
$ifinfo['outbytespass'] = $out4_pass + $out6_pass; |
1243 | 1243 |
$ifinfo['inpktspass'] = $in4_pass_packets + $in6_pass_packets; |
1244 |
$ifinfo['outpktspass'] = $out4_pass_packets + $in6_pass_packets;
|
|
1244 |
$ifinfo['outpktspass'] = $out4_pass_packets + $out6_pass_packets;
|
|
1245 | 1245 |
|
1246 | 1246 |
/* Block */ |
1247 | 1247 |
$pf_in4_block = preg_split("/ +/", $pfctlstats[4]); |
... | ... | |
1264 | 1264 |
$ifinfo['inbytes'] = $in4_pass + $in6_pass; |
1265 | 1265 |
$ifinfo['outbytes'] = $out4_pass + $out6_pass; |
1266 | 1266 |
$ifinfo['inpkts'] = $in4_pass_packets + $in6_pass_packets; |
1267 |
$ifinfo['outpkts'] = $in4_pass_packets + $out6_pass_packets;
|
|
1267 |
$ifinfo['outpkts'] = $out4_pass_packets + $out6_pass_packets;
|
|
1268 | 1268 |
|
1269 | 1269 |
$ifconfiginfo = ""; |
1270 | 1270 |
$link_type = $config['interfaces'][$ifdescr]['ipaddr']; |
Also available in: Unified diff
Fix in/out packet count reporting
There were a couple of wrong var names in the code, causing out packet counts to be reported wrong.
Should fix forum post http://forum.pfsense.org/index.php/topic,55933.0.html