VirtualBox

Ignore:
Timestamp:
Feb 24, 2014 12:30:01 PM (11 years ago)
Author:
vboxsync
Message:

VBoxServiceVMInfo.cpp: IP Address comment updates and some cleanup of previous change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r50554 r50555  
    11241124    for (int i = 0; i < cIfacesSystem; ++i)
    11251125    {
    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). */
    11301127        if (ioctl(sd, SIOCGIFFLAGS, &ifrequest[i]) < 0)
    11311128        {
     
    11431140        bool const fIfUp = !!(ifrequest[i].ifr_flags & IFF_UP);
    11441141
    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. */
    11481144        if (ioctl(sd, SIOCGIFADDR, &ifrequest[i]) < 0)
    11491145        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette