[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Ovirt-devel] [PATCH ovirt-node] set correct ethtool command



Signed-off-by: Alan Pevec <apevec redhat com>
---
 ovirt-identify-node/gather.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ovirt-identify-node/gather.c b/ovirt-identify-node/gather.c
index 4a664f7..5c01d31 100644
--- a/ovirt-identify-node/gather.c
+++ b/ovirt-identify-node/gather.c
@@ -214,6 +214,7 @@ get_nic_data(char *nic, nic_info_ptr nic_info_p)
         ifr.ifr_addr.sa_family = AF_INET;
         strncpy(ifr.ifr_name, interface, IFNAMSIZ - 1);
 
+        ecmd.cmd = ETHTOOL_GSET;
         ifr.ifr_data = (caddr_t)&ecmd;
         ioctl(sockfd, SIOCETHTOOL, &ifr);
         close(sockfd);
-- 
1.5.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]