Changeset 91873 in vbox
- Timestamp:
- Oct 20, 2021 9:08:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvVMNet.m
r91466 r91873 480 480 { 481 481 RT_NOREF(fFlags); 482 PDRVVMNET pThis = PDMINS_2_DATA(pDrvIns, PDRVVMNET); 482 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 483 PDRVVMNET pThis = PDMINS_2_DATA(pDrvIns, PDRVVMNET); 484 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 485 483 486 LogFlow(("drvVMNetConstruct: %p\n", pDrvIns)); 484 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);485 487 486 488 /* … … 525 527 */ 526 528 char szUUID[40]; 527 rc = CFGMR3QueryString(pCfg, "Id", szUUID, sizeof(szUUID));529 rc = pHlp->pfnCFGMQueryString(pCfg, "Id", szUUID, sizeof(szUUID)); 528 530 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 529 531 uuid_generate_random(pThis->uuid); … … 539 541 */ 540 542 uint32_t u32TrunkType; 541 rc = CFGMR3QueryU32(pCfg, "TrunkType", &u32TrunkType);543 rc = pHlp->pfnCFGMQueryU32(pCfg, "TrunkType", &u32TrunkType); 542 544 if (RT_FAILURE(rc)) 543 545 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 550 552 * Get the network mask. 551 553 */ 552 rc = CFGMR3QueryString(pCfg, "NetworkMask", pThis->szNetworkMask, sizeof(pThis->szNetworkMask));554 rc = pHlp->pfnCFGMQueryString(pCfg, "NetworkMask", pThis->szNetworkMask, sizeof(pThis->szNetworkMask)); 553 555 if (RT_FAILURE(rc)) 554 556 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 558 560 * Get the network mask. 559 561 */ 560 rc = CFGMR3QueryString(pCfg, "LowerIP", pThis->szLowerIP, sizeof(pThis->szLowerIP));562 rc = pHlp->pfnCFGMQueryString(pCfg, "LowerIP", pThis->szLowerIP, sizeof(pThis->szLowerIP)); 561 563 if (RT_FAILURE(rc)) 562 564 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 566 568 * Get the network mask. 567 569 */ 568 rc = CFGMR3QueryString(pCfg, "UpperIP", pThis->szUpperIP, sizeof(pThis->szUpperIP));570 rc = pHlp->pfnCFGMQueryString(pCfg, "UpperIP", pThis->szUpperIP, sizeof(pThis->szUpperIP)); 569 571 if (RT_FAILURE(rc)) 570 572 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 579 581 * The name of the host interface to use for bridging. 580 582 */ 581 rc = CFGMR3QueryString(pCfg, "Trunk", pThis->szHostInterface, sizeof(pThis->szHostInterface));583 rc = pHlp->pfnCFGMQueryString(pCfg, "Trunk", pThis->szHostInterface, sizeof(pThis->szHostInterface)); 582 584 if (RT_FAILURE(rc)) 583 585 return PDMDRV_SET_ERROR(pDrvIns, rc,
Note:
See TracChangeset
for help on using the changeset viewer.