Changeset 50555 in vbox for trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
- Timestamp:
- Feb 24, 2014 12:30:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r50554 r50555 1124 1124 for (int i = 0; i < cIfacesSystem; ++i) 1125 1125 { 1126 # ifdef RT_OS_OS2 1127 ifreq IfReqCopy = ifrequest[i]; 1128 # endif 1129 /* Get the interface flags. */ 1126 /* Get the interface flags - ASSUMES the address isn't really overwritten (ugly). */ 1130 1127 if (ioctl(sd, SIOCGIFFLAGS, &ifrequest[i]) < 0) 1131 1128 { … … 1143 1140 bool const fIfUp = !!(ifrequest[i].ifr_flags & IFF_UP); 1144 1141 1145 # ifdef RT_OS_OS2 /* I think this should be done everywhere. */ 1146 /* Get the address. */ 1147 ifrequest[i] = IfReqCopy; 1142 # ifdef RT_OS_OS2 1143 /* Don't know what OS/2 returns in SIOCGIFCONF, but it isn't the address. Get it. */ 1148 1144 if (ioctl(sd, SIOCGIFADDR, &ifrequest[i]) < 0) 1149 1145 {
Note:
See TracChangeset
for help on using the changeset viewer.