VirtualBox

Changeset 18874 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 14, 2009 4:07:04 AM (16 years ago)
Author:
vboxsync
Message:

NAT: handling empty domain name list moved to package preparing

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

Legend:

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

    r18584 r18874  
    300300            FILL_BOOTP_EXT(q, RFC1533_DNS, 4, &de->de_addr.s_addr);
    301301        }
     302        if (LIST_EMPTY(&pData->dns_domain_list_head))
     303        {
     304                /* Microsoft dhcp client doen't like domain-less dhcp and trimmed packets*/
     305                /* dhcpcd client very sad if no domain name is passed */
     306                FILL_BOOTP_EXT(q, RFC1533_DOMAINNAME, 1, " ");
     307        }
    302308        LIST_FOREACH(dd, &pData->dns_domain_list_head, dd_list)
    303309        {
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r18872 r18874  
    340340    struct dns_entry *da = NULL;
    341341    struct dns_domain_entry *dd = NULL;
    342     int fzerro_len_added = 0;
    343342    ULONG ret = ERROR_SUCCESS;
    344343
     
    409408
    410409            if (!suffix || strlen(suffix) == 0) {
    411                 /* dhcpcd client very sad if no domain name is passed */
    412410                RTStrFree(suffix);
    413                 if (fzerro_len_added)
    414                     goto next_dns;
    415                 fzerro_len_added = 1;
    416                 suffix = RTStrDup(" ");
     411                goto next_dns;
    417412            }
    418413
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