Changeset 28396 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 16, 2010 7:37:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r28365 r28396 206 206 typedef DRVNAT *PDRVNAT; 207 207 208 /**209 * NAT queue item.210 */211 typedef struct DRVNATQUEUITEM212 {213 /** The core part owned by the queue manager. */214 PDMQUEUEITEMCORE Core;215 /** The buffer for output to guest. */216 const uint8_t *pu8Buf;217 /* size of buffer */218 size_t cb;219 void *mbuf;220 } DRVNATQUEUITEM;221 /** Pointer to a NAT queue item. */222 typedef DRVNATQUEUITEM *PDRVNATQUEUITEM;223 224 208 225 209 /******************************************************************************* … … 227 211 *******************************************************************************/ 228 212 static void drvNATNotifyNATThread(PDRVNAT pThis, const char *pszWho); 229 230 213 231 214 … … 295 278 AssertRC(rc); 296 279 } 297 else if ( RT_FAILURE(rc) 298 && ( rc == VERR_TIMEOUT 299 && rc == VERR_INTERRUPTED)) 280 else if ( rc != VERR_TIMEOUT 281 && rc != VERR_INTERRUPTED) 300 282 { 301 283 AssertRC(rc); … … 342 324 AssertRC(rc); 343 325 } 344 else if ( RT_FAILURE(rc) 345 && rc != VERR_TIMEOUT 326 else if ( rc != VERR_TIMEOUT 346 327 && rc != VERR_INTERRUPTED) 347 328 { … … 968 949 static int drvNATConstructRedir(unsigned iInstance, PDRVNAT pThis, PCFGMNODE pCfg, RTIPV4ADDR Network) 969 950 { 970 RTMAC Mac; 971 memset(&Mac, 0, sizeof(RTMAC)); /*can't get MAC here */ 951 RTMAC Mac; 952 RT_ZERO(Mac); /* can't get MAC here */ 953 972 954 /* 973 955 * Enumerate redirections. … … 1240 1222 return rc; 1241 1223 } 1242 1243 1224 1244 1225 rc = RTReqCreateQueue(&pThis->pRecvReqQueue);
Note:
See TracChangeset
for help on using the changeset viewer.