Changeset 21010 in vbox for trunk/src/VBox
- Timestamp:
- Jun 29, 2009 4:36:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r21009 r21010 81 81 #define GET_STRING_ALLOC(rc, node, drv_inst, name, var) \ 82 82 GET_EXTRADATA(node, drv_inst, name, (rc), StringAlloc, string, (var)) 83 #define GET_S32(rc, node, drv_inst, name, var) \ 84 GET_EXTRADATA(node, drv_inst, name, (rc), S32, int, (var)) 83 85 84 86 /******************************************************************************* … … 827 829 GET_STRING_ALLOC(rc, pCfgHandle, pDrvIns->iInstance, "NextServer", pThis->pszNextServer); 828 830 829 int fDNSProxy; 830 rc = CFGMR3QueryS32(pCfgHandle, "DNSProxy", &fDNSProxy); 831 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 832 fDNSProxy = 0; 831 int fDNSProxy = 0; 832 GET_S32(rc, pCfgHandle, pDrvIns->iInstance, "DNSProxy", fDNSProxy); 833 833 834 834 /* … … 859 859 rc = RTCidrStrToIPv4(szNetwork, &Network, &Netmask); 860 860 if (RT_FAILURE(rc)) 861 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT#%d: Configuration error: network '%s' describes not a valid IPv4 network"), pDrvIns->iInstance, szNetwork); 861 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT#%d: Configuration error: " 862 "network '%s' describes not a valid IPv4 network"), 863 pDrvIns->iInstance, szNetwork); 862 864 863 865 RTStrPrintf(szNetAddr, sizeof(szNetAddr), "%d.%d.%d.%d", 864 (Network & 0xFF000000) >> 24, (Network & 0xFF0000) >> 16, (Network & 0xFF00) >> 8, Network & 0xFF); 866 (Network & 0xFF000000) >> 24, (Network & 0xFF0000) >> 16, 867 (Network & 0xFF00) >> 8, Network & 0xFF); 865 868 866 869 /*
Note:
See TracChangeset
for help on using the changeset viewer.