VirtualBox

Changeset 20960 in vbox


Ignore:
Timestamp:
Jun 26, 2009 8:43:03 AM (15 years ago)
Author:
vboxsync
Message:

NAT: using fPassDomain while composing domainname's list

File:
1 edited

Legend:

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

    r20959 r20960  
    340340                FILL_BOOTP_EXT(q, RFC1533_DOMAINNAME, 1, " ");
    341341        }
    342         LIST_FOREACH(dd, &pData->dns_domain_list_head, dd_list)
    343         {
    344            
    345             if (dd->dd_pszDomain == NULL)
    346                 continue;
    347             if (added != 0)
    348                 FILL_BOOTP_EXT(q, RFC1533_DOMAINNAME, 1, ","); /* never meet valid separator here in RFC1533*/
    349             else
    350                 added = 1;
    351             val = (int)strlen(dd->dd_pszDomain);
    352             FILL_BOOTP_EXT(q, RFC1533_DOMAINNAME, val, dd->dd_pszDomain);
     342        if (pData->fPassDomain)
     343        {
     344            LIST_FOREACH(dd, &pData->dns_domain_list_head, dd_list)
     345            {
     346               
     347                if (dd->dd_pszDomain == NULL)
     348                    continue;
     349                /* never meet valid separator here in RFC1533*/
     350                if (added != 0)
     351                    FILL_BOOTP_EXT(q, RFC1533_DOMAINNAME, 1, ",");
     352                else
     353                    added = 1;
     354                val = (int)strlen(dd->dd_pszDomain);
     355                FILL_BOOTP_EXT(q, RFC1533_DOMAINNAME, val, dd->dd_pszDomain);
     356            }
    353357        }
    354358
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