Changeset 50950 in vbox for trunk/src/VBox
- Timestamp:
- Apr 2, 2014 1:32:02 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r50949 r50950 223 223 DECLINLINE(void) drvNATHostNetworkConfigurationChangeEventStrategySelector( 224 224 PDRVNAT pThis, 225 bool f HostNetworkConfigurationEventListener);225 bool fFlapLink); 226 226 static DECLCALLBACK(int) drvNATReinitializeHostNameResolving(PDRVNAT pThis); 227 227 … … 979 979 CFArrayRef hArrAddresses = (CFArrayRef)CFDictionaryGetValue(hDnsDict, kSCPropNetDNSServerAddresses); 980 980 if (hArrAddresses) 981 drvNATHostNetworkConfigurationChangeEventStrategySelector(pThis, /* RT_OS_DARWIN*/ true);981 drvNATHostNetworkConfigurationChangeEventStrategySelector(pThis, /* fFlapLink */ true); 982 982 983 983 CFRelease(hDnsDict); … … 1052 1052 { 1053 1053 case VMRESUMEREASON_HOST_RESUME: 1054 bool fFlapLink; 1054 1055 #if RT_OS_DARWIN 1055 drvNATHostNetworkConfigurationChangeEventStrategySelector(pThis, false); 1056 /* let drvNatDnsChanged event handler do it if necessary */ 1057 fFlapLink = false; 1056 1058 #else 1057 drvNATHostNetworkConfigurationChangeEventStrategySelector(pThis, true); 1058 #endif 1059 /* XXX: when in doubt, use brute force */ 1060 fFlapLink = true; 1061 #endif 1062 drvNATHostNetworkConfigurationChangeEventStrategySelector(pThis, fFlapLink); 1059 1063 return; 1060 1064 default: /* Ignore every other resume reason. */ … … 1083 1087 * search string) at runtime (VBOX_NAT_ENFORCE_INTERNAL_DNS_UPDATE), we can do it safely on NAT thread, 1084 1088 * so with changing other variables (place where we handle update) the main mechanism of update 1085 * _won't_ be changed, the only thing will change is drop of f HostNetworkConfigurationEventListenerparameter.1089 * _won't_ be changed, the only thing will change is drop of fFlapLink parameter. 1086 1090 */ 1087 1091 DECLINLINE(void) drvNATHostNetworkConfigurationChangeEventStrategySelector(PDRVNAT pThis, 1088 bool f HostNetworkConfigurationEventListener)1092 bool fFlapLink) 1089 1093 { 1090 1094 int strategy = slirp_host_network_configuration_change_strategy_selector(pThis->pNATState); … … 1122 1126 */ 1123 1127 1124 if (f HostNetworkConfigurationEventListener)1128 if (fFlapLink) 1125 1129 pThis->pIAboveConfig->pfnSetLinkState(pThis->pIAboveConfig, 1126 1130 PDMNETWORKLINKSTATE_DOWN_RESUME);
Note:
See TracChangeset
for help on using the changeset viewer.