VirtualBox

Changeset 55003 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 30, 2015 2:21:45 AM (10 years ago)
Author:
vboxsync
Message:

NAT: udp_input: force allocation of new socket for requests to the DNS
proxy since DNS proxy code is currently limited to tracking just one
request per socket.

File:
1 edited

Legend:

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

    r52258 r55003  
    210210
    211211    /*
     212     * XXX: DNS proxy currently relies on the fact that each socket
     213     * only serves one request.
     214     */
     215    if (   pData->fUseDnsProxy
     216        && CTL_CHECK(ip->ip_dst.s_addr, CTL_DNS)
     217        && (uh->uh_dport == RT_H2N_U16_C(53)))
     218    {
     219        so = NULL;
     220        goto new_socket;
     221    }
     222
     223    /*
    212224     * Locate pcb for datagram.
    213225     */
     
    236248    }
    237249
     250  new_socket:
    238251    if (so == NULL)
    239252    {
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