diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2022-08-16 15:46:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 15:46:53 +0200 |
commit | b545e0f99b5dc0d976f33ed2dd0d15199fd880cb (patch) | |
tree | c2bea6987dc1359ddcfed43af380142d5359c644 /zebra | |
parent | Merge pull request #11814 from mobash-rasool/fixes2 (diff) | |
parent | zebra: correct one comment about ethtool ioctl (diff) | |
download | frr-b545e0f99b5dc0d976f33ed2dd0d15199fd880cb.tar.xz frr-b545e0f99b5dc0d976f33ed2dd0d15199fd880cb.zip |
Merge pull request #11813 from anlancs/fix/minor-11
zebra: correct one comment about ethtool ioctl
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/if_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 7a4e1304b..c7e7443a1 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -423,7 +423,7 @@ static uint32_t get_iflink_speed(struct interface *interface, int *error) ecmd.cmd = ETHTOOL_GSET; /* ETHTOOL_GLINK */ ifdata.ifr_data = (caddr_t)&ecmd; - /* use ioctl to get IP address of an interface */ + /* use ioctl to get speed of an interface */ frr_with_privs(&zserv_privs) { sd = vrf_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, interface->vrf->vrf_id, NULL); @@ -436,7 +436,7 @@ static uint32_t get_iflink_speed(struct interface *interface, int *error) *error = -1; return 0; } - /* Get the current link state for the interface */ + /* Get the current link state for the interface */ rc = vrf_ioctl(interface->vrf->vrf_id, sd, SIOCETHTOOL, (char *)&ifdata); } |