diff options
Diffstat (limited to 'kcontrol/nics')
-rw-r--r-- | kcontrol/nics/nic.cpp | 4 |
1 files 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 |