VirtualBox

Ignore:
Timestamp:
May 25, 2009 2:29:12 AM (16 years ago)
Author:
vboxsync
Message:

NAT: fix of vbox.org/4091 change list to queue to feed dhcp client with

rigth order of DNS servers

File:
1 edited

Legend:

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

    r19700 r19979  
    106106    struct request *req = (struct request *)arg;
    107107    struct dns_entry *de;
    108     de = LIST_NEXT(req->dns_server, de_list);
     108    de = TAILQ_PREV(req->dns_server, dns_list_head, de_list);
    109109    /* here we should check if we reached the end of the DNS server list */
    110110    if (de == NULL)
     
    269269        memcpy(&req->client, &fromaddr, sizeof(struct sockaddr_in));
    270270        memcpy(&req->clientid, &buf[0], 2);
    271         req->dns_server = LIST_FIRST(&pData->dns_list_head);
     271        req->dns_server = TAILQ_LAST(&pData->dns_list_head, dns_list_head);
    272272        if (req->dns_server == NULL)
    273273        {
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