]> granicus.if.org Git - sysstat/commit
Check /proc/net/snmp format for ICMP statistics
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 15 Aug 2015 12:39:21 +0000 (14:39 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 15 Aug 2015 12:39:21 +0000 (14:39 +0200)
commit789cd86fb06a0e131973461406521cd39991cde4
tree9d42c49e693a08e3ac518e5a83b5bcff70062482
parent6993ba8c18fba1022bfe92b6251026cc7be3f13b
Check /proc/net/snmp format for ICMP statistics

"InCsumErrors" field was added following "InErrors" in the ICMP line of
statistics. So we may have two different formats to deal with: The old
one, where "InCsumErrors" doesn't exist, and the new one including
"InCsumErrors" field.
This patch adds a check to know which format it is and read the various
statistics at their right position.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rd_stats.c