Previously stats were gotten by RTM_GETLINK which return 32 bits based statistics. It support only one type of stats. Lately, a new method to get stats was added - RTM_GETSTATS. It supports ability to choose stats type. The basic stats were changed from 32 bits based to 64 bits based.
This patchset change ifstat to the new method, add it the ability to choose an extended type of statistic, and add the extended type of SW stats for packets that hit cpu. Nogah Frankel (3): ifstat: Change interface to get stats ifstat: Add extended statistics to ifstat ifstat: Add "sw only" extended statistics to ifstat misc/ifstat.c | 125 +++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 102 insertions(+), 23 deletions(-) -- 2.4.3