Revision 1d6c4cbf
Added by Phil Davis over 12 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
1199 | 1199 |
$ifinfo['inbytes'] = $in4_pass + $in4_block; |
1200 | 1200 |
$ifinfo['outbytes'] = $out4_pass + $out4_block; |
1201 | 1201 |
$ifinfo['inpkts'] = $in4_pass_packets + $in4_block_packets; |
1202 |
$ifinfo['outpkts'] = $in4_pass_packets + $out4_block_packets;
|
|
1202 |
$ifinfo['outpkts'] = $out4_pass_packets + $out4_block_packets;
|
|
1203 | 1203 |
|
1204 | 1204 |
$ifconfiginfo = ""; |
1205 | 1205 |
$link_type = $config['interfaces'][$ifdescr]['ipaddr']; |
Also available in: Unified diff
Fix out packet count reporting
This is a little tiny fix, for the similar issue that was fixed in 2.1 a month ago (the 2.1 fix had a mix of v4 and v6 packet counting fixUPS). The 2.0 IPv4-only code just had this 1 little error.
The 2.1 commit was at https://github.com/bsdperimeter/pfsense/commit/4bdfa5dde01c9fe7f84db252ed654d326b8b30f2