Changeset 49598 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 21, 2013 10:36:22 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90804
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r49471 r49598 8487 8487 RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), str.c_str()); /** @todo bitch about names which are too long... */ 8488 8488 IfReq.ifr_flags = IFF_TAP | IFF_NO_PI; 8489 rcVBox = ioctl( maTapFD[slot], TUNSETIFF, &IfReq);8489 rcVBox = ioctl(RTFileToNative(maTapFD[slot]), TUNSETIFF, &IfReq); 8490 8490 if (rcVBox != 0) 8491 8491 { … … 8501 8501 * Make it pollable. 8502 8502 */ 8503 if (fcntl( maTapFD[slot], F_SETFL, O_NONBLOCK) != -1)8503 if (fcntl(RTFileToNative(maTapFD[slot]), F_SETFL, O_NONBLOCK) != -1) 8504 8504 { 8505 8505 Log(("attachToTapInterface: %RTfile %ls\n", maTapFD[slot], tapDeviceName.raw())); -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r49588 r49598 4372 4372 } 4373 4373 4374 Assert((int )maTapFD[uInstance] >= 0);4375 if ((int )maTapFD[uInstance] >= 0)4374 Assert((intptr_t)maTapFD[uInstance] >= 0); 4375 if ((intptr_t)maTapFD[uInstance] >= 0) 4376 4376 { 4377 4377 InsertConfigString(pLunL0, "Driver", "HostInterface"); 4378 4378 InsertConfigNode(pLunL0, "Config", &pCfg); 4379 InsertConfigInteger(pCfg, "FileHandle", maTapFD[uInstance]);4379 InsertConfigInteger(pCfg, "FileHandle", (intptr_t)maTapFD[uInstance]); 4380 4380 } 4381 4381 … … 4571 4571 } 4572 4572 4573 Assert((int )maTapFD[uInstance] >= 0);4574 if ((int )maTapFD[uInstance] >= 0)4573 Assert((intptr_t)maTapFD[uInstance] >= 0); 4574 if ((intptr_t)maTapFD[uInstance] >= 0) 4575 4575 { 4576 4576 InsertConfigString(pLunL0, "Driver", "HostInterface"); 4577 4577 InsertConfigNode(pLunL0, "Config", &pCfg); 4578 InsertConfigInteger(pCfg, "FileHandle", maTapFD[uInstance]);4578 InsertConfigInteger(pCfg, "FileHandle", (intptr_t)maTapFD[uInstance]); 4579 4579 } 4580 4580 break;
Note:
See TracChangeset
for help on using the changeset viewer.