VirtualBox

Changeset 59143 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 15, 2015 11:15:02 PM (9 years ago)
Author:
vboxsync
Message:

NAT: Start rewriting host resolver to clean up the code to be able to
add reverse lookups eventually. Name compression (label pointers) are
supported in replies. Code for user-defined mapping is left as is for
now.

Oops, this file was accidentally lost from r104722.

File:
1 edited

Legend:

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

    r59063 r59143  
    191191    {
    192192        struct sockaddr_in dst, src;
    193         int error;
    194193
    195194        src.sin_addr.s_addr = ip->ip_dst.s_addr;
     
    200199        m_adj(m, sizeof(struct udpiphdr));
    201200
    202         error = hostresolver(pData, m);
    203         if (error)
     201        m = hostresolver(pData, m);
     202        if (m == NULL)
    204203            goto done_free_mbuf;
    205204
     
    397396     * buffers here.
    398397     */
    399     m_freem(pData, m);
     398    if (m != NULL)
     399        m_freem(pData, m);
    400400    LogFlowFuncLeave();
    401401    return;
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