VirtualBox

Changeset 50949 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Apr 2, 2014 12:53:08 AM (11 years ago)
Author:
vboxsync
Message:

NAT: Rename horrifying "VBOX_NAT_HNCE_EXSPOSED_NAME_RESOLUTION_INFO"
which is not just a mouthful, but has a typo in "exposed" too. While
here rename the rest of them with s/HNCE/DNS/. "HNCE" is an obscure
abbreviation and as far as I can tell it doesn't really reflect the
meaning of these constants.

Location:
trunk/src/VBox/Devices/Network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r50622 r50949  
    10921092    {
    10931093
    1094         case VBOX_NAT_HNCE_DNSPROXY:
     1094        case VBOX_NAT_DNS_DNSPROXY:
    10951095            {
    10961096                /**
     
    11161116            }
    11171117
    1118         case VBOX_NAT_HNCE_EXSPOSED_NAME_RESOLUTION_INFO:
     1118        case VBOX_NAT_DNS_EXTERNAL:
    11191119            /*
    11201120             * Host resumed from a suspend and the network might have changed.
     
    11271127            return;
    11281128
    1129         case VBOX_NAT_HNCE_HOSTRESOLVER:
     1129        case VBOX_NAT_DNS_HOSTRESOLVER:
    11301130        default:
    11311131            return;
  • trunk/src/VBox/Devices/Network/slirp/libslirp.h

    r50691 r50949  
    111111 * This method help DrvNAT to select strategy: about VMRESUMEREASON_HOST_RESUME:
    112112 * - proceed with link termination (we let guest track host DNS settings)
    113  *    VBOX_NAT_HNCE_EXPOSED_NAME_RESOLVING_INFO
     113 *    VBOX_NAT_DNS_EXTERNAL
    114114 * - enforce internal DNS update (we are using dnsproxy and track but don't export DNS host settings)
    115  *    VBOX_NAT_HNCE_DNSPROXY
     115 *    VBOX_NAT_DNS_DNSPROXY
    116116 * - ignore (NAT configured to use hostresolver - we aren't track any host DNS changes)
    117  *    VBOX_NAT_HNCE_HOSTRESOLVER
     117 *    VBOX_NAT_DNS_HOSTRESOLVER
    118118 * @note: It's safe to call this method from any thread, because settings we're checking
    119119 * are immutable at runtime.
    120120 */
    121 #define VBOX_NAT_HNCE_EXSPOSED_NAME_RESOLUTION_INFO 0
    122 #define VBOX_NAT_HNCE_DNSPROXY 1
    123 #define VBOX_NAT_HNCE_HOSTRESOLVER 2
     121#define VBOX_NAT_DNS_EXTERNAL 0
     122#define VBOX_NAT_DNS_DNSPROXY 1
     123#define VBOX_NAT_DNS_HOSTRESOLVER 2
    124124int slirp_host_network_configuration_change_strategy_selector(const PNATState);
    125125#if defined(RT_OS_WINDOWS)
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r50690 r50949  
    20542054int slirp_host_network_configuration_change_strategy_selector(const PNATState pData)
    20552055{
    2056     if (pData->fUseHostResolverPermanent) return VBOX_NAT_HNCE_HOSTRESOLVER;
     2056    if (pData->fUseHostResolverPermanent)
     2057        return VBOX_NAT_DNS_HOSTRESOLVER;
     2058
    20572059    if (pData->fUseDnsProxy) {
    20582060#if HAVE_NOTIFICATION_FOR_DNS_UPDATE
     
    20682070        if (   RT_FAILURE(rc)
    20692071            || LIST_EMPTY(&pData->pDomainList))
    2070             return VBOX_NAT_HNCE_DNSPROXY;
     2072            return VBOX_NAT_DNS_DNSPROXY;
    20712073       
    20722074        if (   rcp_state.rcps_domain
    20732075            && strcmp(rcp_state.rcps_domain, LIST_FIRST(&pData->pDomainList)->dd_pszDomain) == 0)
    2074             return VBOX_NAT_HNCE_DNSPROXY;
     2076            return VBOX_NAT_DNS_DNSPROXY;
    20752077        else
    2076             return VBOX_NAT_HNCE_EXSPOSED_NAME_RESOLUTION_INFO; /* XXX: rename it */
     2078            return VBOX_NAT_DNS_EXTERNAL;
    20772079#else
    20782080        /* copy domain name */
    20792081        /* 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette