Package: nicstat / 1.95-1

Metadata

Package Version Patches format
nicstat 1.95-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01 manpage_fixes.patch | (download)

nicstat.1 | 18 10 8 - 0 !
1 file changed, 10 insertions( ), 8 deletions(-)

 fix groff warnings in nicstat manpage
15 too_many_arguments_for_format.patch | (download)

nicstat.c | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fix compile time warning about too many arguments for format
729897.patch | (download)

nicstat.c | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fix utilization calculation by using correct constant for full duplex on linux
 The code that calculates utilization checks the duplex mode against a numeric
 value (`2') that (apparently) is the value of DUPLEX_FULL on Solaris.
 .
729895.patch | (download)

nicstat.c | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 fix miscalculation of nic speed
 On Linux, when nicstat obtains nic info via ioctl SIOCETHTOOL, it picks
 up the speed from a struct ethtool_cmd, where it's stored as a u16 in
 Mbps, and multiplies it by the integer literal 1000000 to get bps.
 .
 On 10GbE ethernet this causes a signed integer overflow, which is
 undefined behaviour and the result sadly never seems to work out to
 the correct 10,000,000,000 bps :-)