Changeset 62985 in vbox for trunk/src/VBox
- Timestamp:
- Aug 4, 2016 1:04:30 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109592
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r62984 r62985 913 913 static DECLCALLBACK(int) drvNATAsyncIoWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 914 914 { 915 RT_NOREF(pThread); 915 916 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 916 917 … … 948 949 static DECLCALLBACK(int) drvNATHostResWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 949 950 { 951 RT_NOREF(pThread); 950 952 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 951 953 Assert(pThis != NULL); … … 966 968 int slirp_can_output(void *pvUser) 967 969 { 970 RT_NOREF(pvUser); 968 971 return 1; 969 972 } … … 980 983 PDRVNAT pThis = (PDRVNAT)pvUser; 981 984 Assert(pThis); 982 983 PRTREQ pReq = NULL;984 985 985 986 /* don't queue new requests when the NAT thread is about to stop */ … … 1016 1017 LogFlow(("slirp_output BEGIN %p %d\n", pu8Buf, cb)); 1017 1018 Log6(("slirp_output: pu8Buf=%p cb=%#x (pThis=%p)\n%.*Rhxd\n", pu8Buf, cb, pThis, cb, pu8Buf)); 1018 1019 PRTREQ pReq = NULL;1020 1019 1021 1020 /* don't queue new requests when the NAT thread is about to stop */ … … 1184 1183 pThis->pIAboveConfig->pfnGetMac(pThis->pIAboveConfig, &Mac); 1185 1184 } 1185 #else 1186 RT_NOREF(pThis); 1186 1187 #endif 1187 1188 } … … 1193 1194 * (usually done during guest boot). 1194 1195 */ 1195 static DECLCALLBACK(int) drvNATLoadDone(PPDMDRVINS pDrvIns, PSSMHANDLE pSSMHandle) 1196 { 1196 static DECLCALLBACK(int) drvNATLoadDone(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM) 1197 { 1198 RT_NOREF(pSSM); 1197 1199 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 1198 1200 drvNATSetMac(pThis); … … 1314 1316 static int drvNATConstructDNSMappings(unsigned iInstance, PDRVNAT pThis, PCFGMNODE pMappingsCfg) 1315 1317 { 1318 RT_NOREF(iInstance); 1316 1319 int rc = VINF_SUCCESS; 1317 1320 LogFlowFunc(("ENTER: iInstance:%d\n", iInstance)); … … 1339 1342 } 1340 1343 struct in_addr HostIP; 1344 RT_ZERO(HostIP); 1341 1345 GETIP_DEF(rc, pThis, pNode, HostIP, INADDR_ANY); 1342 1346 if (rc == VERR_CFGM_VALUE_NOT_FOUND) … … 1361 1365 static int drvNATConstructRedir(unsigned iInstance, PDRVNAT pThis, PCFGMNODE pCfg, PRTNETADDRIPV4 pNetwork) 1362 1366 { 1367 RT_NOREF(pNetwork); /** @todo figure why pNetwork isn't used */ 1368 1363 1369 /* 1364 1370 * Enumerate redirections. … … 1415 1421 /* host address ("BindIP" name is rather unfortunate given "HostPort" to go with it) */ 1416 1422 struct in_addr BindIP; 1423 RT_ZERO(BindIP); 1417 1424 GETIP_DEF(rc, pThis, pNode, BindIP, INADDR_ANY); 1418 1425 1419 1426 /* guest address */ 1420 1427 struct in_addr GuestIP; 1428 RT_ZERO(GuestIP); 1421 1429 GETIP_DEF(rc, pThis, pNode, GuestIP, INADDR_ANY); 1422 1430 … … 1502 1510 static DECLCALLBACK(int) drvNATConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 1503 1511 { 1512 RT_NOREF(fFlags); 1513 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 1504 1514 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 1505 1515 LogFlow(("drvNATConstruct:\n")); 1506 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);1507 1516 1508 1517 /*
Note:
See TracChangeset
for help on using the changeset viewer.