Changeset 37596 in vbox for trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
- Timestamp:
- Jun 22, 2011 7:30:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r37418 r37596 1703 1703 strcpy(IfReq.ifr_name, "tun%d"); 1704 1704 IfReq.ifr_flags = IFF_TAP | IFF_NO_PI; 1705 rc = ioctl( tapFD, TUNSETIFF, &IfReq);1705 rc = ioctl(RTFileToNative(tapFD), TUNSETIFF, &IfReq); 1706 1706 if (rc) 1707 1707 { … … 1712 1712 } 1713 1713 1714 rc = fcntl( tapFD, F_SETFL, O_NONBLOCK);1714 rc = fcntl(RTFileToNative(tapFD), F_SETFL, O_NONBLOCK); 1715 1715 if (rc) 1716 1716 { … … 1722 1722 1723 1723 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(); 1725 1725 1726 1726 #elif defined(RT_OS_SOLARIS)
Note:
See TracChangeset
for help on using the changeset viewer.