-S option ignored if SIOCETHTOOL succeeds
Status: Beta
Brought to you by:
timcook
The -S option is ignored if nicstat obtains speed via SIOCETHTOOL.
My hack for this in 1.95, which may or may not be right (but it works for me):
$ diff -u nicstat.c.orig nicstat.c
--- nicstat.c_orig 2014-09-22 17:07:12.803013808 -0700
+++ nicstat.c 2014-09-22 17:07:17.650990773 -0700
@@ -1588,6 +1588,9 @@
struct ethtool_cmd edata;
int status;
+ if (find_interface_speed(nicp))
+ return;
+
if (nicp->flags & NIC_NO_GSET) {
if (nicp->speed > 0)
/* Already got something */
Hmm, well this patch breaks parsing of -S for invalid values for some reason, haven't had a chance to look into that deeper. It does allow the overrides, at least.