diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-04 00:28:26 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-04 00:28:26 +0200 |
commit | eb649b7ff38df75fb2b5fc20a552b9a6d1f78063 (patch) | |
tree | 174cf41e234472dc15902a7011c0914284ad64b6 /zebra | |
parent | zebra: Display new speed information in 'show int..' command (diff) | |
download | frr-eb649b7ff38df75fb2b5fc20a552b9a6d1f78063.tar.xz frr-eb649b7ff38df75fb2b5fc20a552b9a6d1f78063.zip |
lib, zebra: Fix CR comments
lib -> Add a bit of documentation about what units we are in.
zebra -> Fix failure case to be a bit better.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/if_netlink.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index b1d4dd81d..28538fabd 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -330,8 +330,10 @@ get_iflink_speed (const char *ifname) /* Get the current link state for the interface */ rc = ioctl(sd, SIOCETHTOOL, (char *)&ifdata); if(rc < 0) { - zlog_debug ("IOCTL failure to read interface %s speed: %d %s", - ifname, errno, safe_strerror(errno)); + zlog_debug("IOCTL failure to read interface %s speed: %d %s", + ifname, errno, safe_strerror(errno)); + ecmd.speed_hi = 0; + ecmd.speed = 0; } close(sd); |