- Timestamp:
- Feb 8, 2015 11:03:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r54107 r54109 959 959 960 960 961 /** 962 * @interface_method_impl{PDMINETWORKNATCONFIG,pfnNotifyDnsChanged} 963 * 964 * We are notified that host's resolver configuration has changed. In 965 * the current setup we don't get any details and just reread that 966 * information ourselves. 967 */ 968 static DECLCALLBACK(void) drvNATNotifyDnsChanged(PPDMINETWORKNATCONFIG pInterface) 969 { 970 PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkNATCfg); 971 drvNATUpdateDNS(pThis, /* fFlapLink */ true); 972 } 973 974 961 975 #ifdef RT_OS_DARWIN 962 976 /** … … 1085 1099 case VMRESUMEREASON_HOST_RESUME: 1086 1100 bool fFlapLink; 1087 #if RT_OS_DARWIN1088 /* let drvNatDnsChangedevent handler do it if necessary */1101 #if HAVE_NOTIFICATION_FOR_DNS_UPDATE 1102 /* let event handler do it if necessary */ 1089 1103 fFlapLink = false; 1090 1104 #else … … 1405 1419 /* NAT engine configuration */ 1406 1420 pThis->INetworkNATCfg.pfnRedirectRuleCommand = drvNATNetworkNatConfig_RedirectRuleCommand; 1421 #if HAVE_NOTIFICATION_FOR_DNS_UPDATE && !defined(RT_OS_DARWIN) 1422 /* 1423 * On OS X we stick to the old OS X specific notifications for 1424 * now. Elsewhere use IHostNameResolutionConfigurationChangeEvent 1425 * by enbaling HAVE_NOTIFICATION_FOR_DNS_UPDATE in libslirp.h. 1426 * This code is still in a bit of flux and is implemented and 1427 * enabled in steps to simplify more conservative backporting. 1428 */ 1429 pThis->INetworkNATCfg.pfnNotifyDnsChanged = drvNATNotifyDnsChanged; 1430 #else 1407 1431 pThis->INetworkNATCfg.pfnNotifyDnsChanged = NULL; 1432 #endif 1408 1433 1409 1434 /*
Note:
See TracChangeset
for help on using the changeset viewer.