Changeset 68026 in vbox for trunk/src/VBox/Main/src-server/linux
- Timestamp:
- Jul 18, 2017 2:15:32 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117046
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/linux/NetIf-linux.cpp
r67432 r68026 26 26 #include <list> 27 27 #include <sys/ioctl.h> 28 #include <net/if.h> 28 #include <sys/socket.h> 29 #include <linux/wireless.h> 29 30 #include <net/if_arp.h> 30 31 #include <net/route.h> … … 164 165 if (ioctl(iSocket, SIOCGIFFLAGS, &Req) >= 0) 165 166 pInfo->enmStatus = Req.ifr_flags & IFF_UP ? NETIF_S_UP : NETIF_S_DOWN; 167 168 struct iwreq WRq; 169 RT_ZERO(WRq); 170 RTStrCopy(WRq.ifr_name, sizeof(WRq.ifr_name), pszName); 171 pInfo->fWireless = ioctl(iSocket, SIOCGIWNAME, &WRq) >= 0; 166 172 167 173 FILE *fp = fopen("/proc/net/if_inet6", "r");
Note:
See TracChangeset
for help on using the changeset viewer.