Changeset 91872 in vbox for trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
- Timestamp:
- Oct 20, 2021 9:07:44 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 147675
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
r82968 r91872 374 374 static DECLCALLBACK(int) drvNetSnifferConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 375 375 { 376 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER); 376 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 377 PDRVNETSNIFFER pThis = PDMINS_2_DATA(pDrvIns, PDRVNETSNIFFER); 378 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 379 377 380 LogFlow(("drvNetSnifferConstruct:\n")); 378 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);379 381 380 382 /* … … 415 417 * Validate the config. 416 418 */ 417 if (!CFGMR3AreValuesValid(pCfg, "File\0")) 418 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 419 420 if (CFGMR3GetFirstChild(pCfg)) 419 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "File", ""); 420 421 if (pHlp->pfnCFGMGetFirstChild(pCfg)) 421 422 LogRel(("NetSniffer: Found child config entries -- are you trying to redirect ports?\n")); 422 423 … … 424 425 * Get the filename. 425 426 */ 426 rc = CFGMR3QueryString(pCfg, "File", pThis->szFilename, sizeof(pThis->szFilename));427 rc = pHlp->pfnCFGMQueryString(pCfg, "File", pThis->szFilename, sizeof(pThis->szFilename)); 427 428 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 428 429 {
Note:
See TracChangeset
for help on using the changeset viewer.