]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
iproute2: add 64bit support to ifstat
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 23 Aug 2010 19:44:56 +0000 (21:44 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 23 Aug 2010 20:05:12 +0000 (13:05 -0700)
commita571587d0b27a2c1492019c3abeb6fb0c0e606ce
treeeea7d81671242546bcdfa6a63341f941525a53cc
parentdaf7bd5c73aa3b7c91d83abf500c8749bec6e6d5
iproute2: add 64bit support to ifstat

Le lundi 23 août 2010 à 10:33 -0700, Stephen Hemminger a écrit :

> I think this breaks the wraparound detection code in this command.
>
>

OK lets fix the bug only, before adding 64bit counters capabilities.

Thanks

[PATCH] iproute2: add 64bit arches support to ifstat

ifstat assumes IFLA_STATS fields are "unsigned long", but they are
__u32. This fix is needed to let ifstat run on 64bit arches.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
misc/ifstat.c