VirtualBox

Ignore:
Timestamp:
Jun 22, 2011 7:30:06 PM (14 years ago)
Author:
vboxsync
Message:

*: RTFILE becomes a pointer, RTFileOpen++ expands it's flags paramter from uint32_t to uint64_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r37418 r37596  
    17031703                        strcpy(IfReq.ifr_name, "tun%d");
    17041704                    IfReq.ifr_flags = IFF_TAP | IFF_NO_PI;
    1705                     rc = ioctl(tapFD, TUNSETIFF, &IfReq);
     1705                    rc = ioctl(RTFileToNative(tapFD), TUNSETIFF, &IfReq);
    17061706                    if (rc)
    17071707                    {
     
    17121712                    }
    17131713
    1714                     rc = fcntl(tapFD, F_SETFL, O_NONBLOCK);
     1714                    rc = fcntl(RTFileToNative(tapFD), F_SETFL, O_NONBLOCK);
    17151715                    if (rc)
    17161716                    {
     
    17221722
    17231723                    rc = CFGMR3InsertString(pCfg, "Device", g_aNetDevs[ulInstance].pszName);        UPDATE_RC();
    1724                     rc = CFGMR3InsertInteger(pCfg, "FileHandle", (RTFILE)tapFD);                    UPDATE_RC();
     1724                    rc = CFGMR3InsertInteger(pCfg, "FileHandle", (uintptr_t)tapFD);                 UPDATE_RC();
    17251725
    17261726#elif defined(RT_OS_SOLARIS)
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