VirtualBox

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


Ignore:
Timestamp:
Apr 10, 2009 12:46:37 PM (16 years ago)
Author:
vboxsync
Message:

NAT: some dhcp clients happy to have at least " " domain name than to have nothing.

File:
1 edited

Legend:

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

    r18857 r18865  
    340340    struct dns_entry *da = NULL;
    341341    struct dns_domain_entry *dd = NULL;
     342    int fzerro_len_added = 0;
    342343    ULONG ret = ERROR_SUCCESS;
    343344
     
    407408            RTUtf16ToUtf8(addr->DnsSuffix, &suffix);
    408409           
    409             if (strlen(suffix) == 0)
    410                 goto next_dns;
     410            if (strlen(suffix) == 0) {
     411                /* dhcpcd client very sad if no domain name is passed */
     412                if (fzerro_len_added)
     413                    goto next_dns;
     414                fzerro_len_added = 1;
     415                suffix = RTStrDup(" ");
     416            }
    411417
    412418            found = 0;
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