Changeset 23720 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 13, 2009 12:43:15 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r23530 r23720 1926 1926 } 1927 1927 1928 /** 1929 * Ellipsis to va_list wrapper for calling setVMRuntimeErrorCallback. 1930 */ 1931 /*static*/ void Console::setVMRuntimeErrorCallbackF(PVM pVM, void *pvConsole, uint32_t fFlags, const char *pszErrorId, const char *pszFormat, ...) 1932 { 1933 va_list va; 1934 va_start(va, pszFormat); 1935 setVMRuntimeErrorCallback(pVM, pvConsole, fFlags, pszErrorId, pszFormat, va); 1936 va_end(va); 1937 } 1928 1938 1929 1939 /** … … 2294 2304 /** @todo Check for malformed names. */ 2295 2305 const char *pszTrunk = pszHifName; 2306 2307 /* Issue a warning if the interface is down */ 2308 { 2309 int iSock = socket(AF_INET, SOCK_DGRAM, 0); 2310 if (iSock >= 0) 2311 { 2312 struct ifreq Req; 2313 2314 memset(&Req, 0, sizeof(Req)); 2315 strncpy(Req.ifr_name, pszHifName, sizeof(Req.ifr_name) - 1); 2316 if (ioctl(iSock, SIOCGIFFLAGS, &Req) >= 0) 2317 if ((Req.ifr_flags & IFF_UP) == 0) 2318 { 2319 setVMRuntimeErrorCallbackF(pVM, pThis, 0, "BridgedInterfaceDown", "Bridged interface %s is down. Guest will not be able to use this interface", pszHifName); 2320 } 2321 2322 close(iSock); 2323 } 2324 } 2296 2325 2297 2326 # else -
trunk/src/VBox/Main/include/ConsoleImpl.h
r23703 r23720 471 471 const char *pszFormat, va_list args); 472 472 473 static DECLCALLBACK(void) setVMRuntimeErrorCallbackF (PVM pVM, void *pvUser, uint32_t fFatal, 474 const char *pszErrorId, 475 const char *pszFormat, ...); 473 476 static DECLCALLBACK(void) setVMRuntimeErrorCallback (PVM pVM, void *pvUser, uint32_t fFatal, 474 477 const char *pszErrorId,
Note:
See TracChangeset
for help on using the changeset viewer.