From 85d158eec59e42b693e5d83109de157435103d10 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sat, 16 May 2020 19:01:02 +0900 Subject: Change to access ifreq member through macros Signed-off-by: OBATA Akio --- kcontrol/nics/nic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcontrol/nics/nic.cpp b/kcontrol/nics/nic.cpp index 26a270a08..2ff9d2c3c 100644 --- a/kcontrol/nics/nic.cpp +++ b/kcontrol/nics/nic.cpp @@ -222,14 +222,14 @@ NICList* findNICs() result=ioctl(sockfd,SIOCGIFHWADDR,&ifcopy); if (result==0) { - char *n = &ifcopy.ifr_ifru.ifru_hwaddr.sa_data[0]; + char *n = &ifcopy.ifr_hwaddr.sa_data[0]; tmp->HWaddr = HWaddr2String(n); } #elif defined SIOCGENADDR result=ioctl(sockfd,SIOCGENADDR,&ifcopy); if (result==0) { - char *n = &ifcopy.ifr_ifru.ifru_enaddr[0]; + char *n = &ifcopy.ifr_enaddr[0]; tmp->HWaddr = HWaddr2String(n); } #endif -- cgit v1.2.1