- Timestamp:
- Jun 8, 2009 8:40:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r20257 r20383 719 719 */ 720 720 #ifndef VBOX_WITH_SLIRP_DNS_PROXY 721 if (!CFGMR3AreValuesValid(pCfgHandle, "PassDomain\0TFTPPrefix\0BootFile\0Network\0NextServer\0" ))721 if (!CFGMR3AreValuesValid(pCfgHandle, "PassDomain\0TFTPPrefix\0BootFile\0Network\0NextServer\0" 722 722 #else 723 if (!CFGMR3AreValuesValid(pCfgHandle, "PassDomain\0TFTPPrefix\0BootFile\0Network\0NextServer\0DNSProxy\0")) 724 #endif 723 if (!CFGMR3AreValuesValid(pCfgHandle, "PassDomain\0TFTPPrefix\0BootFile\0Network\0NextServer\0DNSProxy\0" 724 #endif 725 "SocketRcvBuf\0SocketSndBuf\0TcpRcvSpace\0TcpSndSpace")) 725 726 return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES, N_("Unknown NAT configuration option, only supports PassDomain, TFTPPrefix, BootFile and Network")); 726 727 … … 806 807 slirp_set_dhcp_dns_proxy(pThis->pNATState, !!fDNSProxy); 807 808 #endif 808 809 #define SLIRP_SET_TUNING_VALUE(name, setter) \ 810 do \ 811 { \ 812 int len = 0; \ 813 rc = CFGMR3QueryS32(pCfgHandle, name, &len); \ 814 if (RT_SUCCESS(rc)) \ 815 setter(pThis->pNATState, len); \ 816 }while(0) 817 SLIRP_SET_TUNING_VALUE("SocketRcvBuf", slirp_set_rcvbuf); 818 SLIRP_SET_TUNING_VALUE("SocketSndBuf", slirp_set_sndbuf); 819 SLIRP_SET_TUNING_VALUE("TcpRcvSpace", slirp_set_tcp_rcvspace); 820 SLIRP_SET_TUNING_VALUE("TcpSndSpace", slirp_set_tcp_sndspace); 821 809 822 slirp_register_timers(pThis->pNATState, pDrvIns); 810 823 int rc2 = drvNATConstructRedir(pDrvIns->iInstance, pThis, pCfgHandle, Network);
Note:
See TracChangeset
for help on using the changeset viewer.