VirtualBox

Changeset 50156 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 22, 2014 1:52:13 AM (11 years ago)
Author:
vboxsync
Message:

NAT/slirp: comment updates to (r89055). Clarify the difference between NATState::fUseHostResolver and NATState::fUseHostResolverPermanent.

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bootp.c

    r48526 r50156  
    694694    if (!pu8RawDhcpObject)
    695695        return;
    696     /*
     696    /**
    697697     * We're going update dns list at least once per DHCP transaction (!not on every operation
    698698     * within transaction), assuming that transaction can't be longer than 1 min.
     699     *
     700     * @note: NATState::fUseHostResolver became (r89055) the flag signalling that Slirp
     701     * wasn't able to fetch fresh host DNS info and fall down to use host-resolver, on one
     702     * of the previous attempts to proxy dns requests to Host's name-resolving API
     703     *
     704     * @note: Checking NATState::fUseHostResolver == true, we want to try restore behaviour initialy
     705     * wanted by user ASAP (P here when host serialize its  configuration in files parsed by Slirp).
    699706     */
    700707    if (   !pData->fUseHostResolverPermanent
    701708        && (   pData->dnsLastUpdate == 0
    702             || curtime - pData->dnsLastUpdate > 60 * 1000
    703             || pData->fUseHostResolver)) /* one minute*/
     709            || curtime - pData->dnsLastUpdate > 60 * 1000 /* one minute */
     710            || pData->fUseHostResolver))
    704711    {
    705712        uint8_t i = 2; /* i = 0 - tag, i == 1 - length */
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r49347 r50156  
    246246#endif
    247247    uma_zone_t zone_ext_refcnt;
     248    /**
     249     * in (r89055) using of this behaviour has been changed and mean that Slirp
     250     * can't parse hosts strucutures/files to provide to guest host name-resolving
     251     * configuration, instead Slirp provides .{interface-number + 1}.3 as a nameserver
     252     * and proxies DNS queiries to Host's Name Resolver API.
     253     */
    248254    bool fUseHostResolver;
    249     /** Flag whether using the host resolver mode is permanent
    250      * because the user configured it that way. */
     255    /**
     256     * Flag whether using the host resolver mode is permanent
     257     * because the user configured it that way.
     258     */
    251259    bool fUseHostResolverPermanent;
    252260    /* from dnsproxy/dnsproxy.h*/
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