[Ovirt-devel] [PATCH ovirt-node] set correct ethtool command
Alan Pevec
apevec at redhat.com
Sun Sep 14 14:13:05 UTC 2008
Signed-off-by: Alan Pevec <apevec at 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
More information about the ovirt-devel
mailing list