Changeset 50949 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 2, 2014 12:53:08 AM (11 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r50622 r50949 1092 1092 { 1093 1093 1094 case VBOX_NAT_ HNCE_DNSPROXY:1094 case VBOX_NAT_DNS_DNSPROXY: 1095 1095 { 1096 1096 /** … … 1116 1116 } 1117 1117 1118 case VBOX_NAT_ HNCE_EXSPOSED_NAME_RESOLUTION_INFO:1118 case VBOX_NAT_DNS_EXTERNAL: 1119 1119 /* 1120 1120 * Host resumed from a suspend and the network might have changed. … … 1127 1127 return; 1128 1128 1129 case VBOX_NAT_ HNCE_HOSTRESOLVER:1129 case VBOX_NAT_DNS_HOSTRESOLVER: 1130 1130 default: 1131 1131 return; -
trunk/src/VBox/Devices/Network/slirp/libslirp.h
r50691 r50949 111 111 * This method help DrvNAT to select strategy: about VMRESUMEREASON_HOST_RESUME: 112 112 * - proceed with link termination (we let guest track host DNS settings) 113 * VBOX_NAT_ HNCE_EXPOSED_NAME_RESOLVING_INFO113 * VBOX_NAT_DNS_EXTERNAL 114 114 * - enforce internal DNS update (we are using dnsproxy and track but don't export DNS host settings) 115 * VBOX_NAT_ HNCE_DNSPROXY115 * VBOX_NAT_DNS_DNSPROXY 116 116 * - ignore (NAT configured to use hostresolver - we aren't track any host DNS changes) 117 * VBOX_NAT_ HNCE_HOSTRESOLVER117 * VBOX_NAT_DNS_HOSTRESOLVER 118 118 * @note: It's safe to call this method from any thread, because settings we're checking 119 119 * are immutable at runtime. 120 120 */ 121 #define VBOX_NAT_ HNCE_EXSPOSED_NAME_RESOLUTION_INFO0122 #define VBOX_NAT_ HNCE_DNSPROXY 1123 #define VBOX_NAT_ HNCE_HOSTRESOLVER 2121 #define VBOX_NAT_DNS_EXTERNAL 0 122 #define VBOX_NAT_DNS_DNSPROXY 1 123 #define VBOX_NAT_DNS_HOSTRESOLVER 2 124 124 int slirp_host_network_configuration_change_strategy_selector(const PNATState); 125 125 #if defined(RT_OS_WINDOWS) -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r50690 r50949 2054 2054 int slirp_host_network_configuration_change_strategy_selector(const PNATState pData) 2055 2055 { 2056 if (pData->fUseHostResolverPermanent) return VBOX_NAT_HNCE_HOSTRESOLVER; 2056 if (pData->fUseHostResolverPermanent) 2057 return VBOX_NAT_DNS_HOSTRESOLVER; 2058 2057 2059 if (pData->fUseDnsProxy) { 2058 2060 #if HAVE_NOTIFICATION_FOR_DNS_UPDATE … … 2068 2070 if ( RT_FAILURE(rc) 2069 2071 || LIST_EMPTY(&pData->pDomainList)) 2070 return VBOX_NAT_ HNCE_DNSPROXY;2072 return VBOX_NAT_DNS_DNSPROXY; 2071 2073 2072 2074 if ( rcp_state.rcps_domain 2073 2075 && strcmp(rcp_state.rcps_domain, LIST_FIRST(&pData->pDomainList)->dd_pszDomain) == 0) 2074 return VBOX_NAT_ HNCE_DNSPROXY;2076 return VBOX_NAT_DNS_DNSPROXY; 2075 2077 else 2076 return VBOX_NAT_ HNCE_EXSPOSED_NAME_RESOLUTION_INFO; /* XXX: rename it */2078 return VBOX_NAT_DNS_EXTERNAL; 2077 2079 #else 2078 2080 /* copy domain name */ 2079 2081 /* domain only compare with coy version */ 2080 return VBOX_NAT_ HNCE_DNSPROXY;2081 #endif 2082 } 2083 return VBOX_NAT_ HNCE_EXSPOSED_NAME_RESOLUTION_INFO;2084 } 2082 return VBOX_NAT_DNS_DNSPROXY; 2083 #endif 2084 } 2085 return VBOX_NAT_DNS_EXTERNAL; 2086 }
Note:
See TracChangeset
for help on using the changeset viewer.