VirtualBox

Changeset 22971 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 12, 2009 6:23:57 PM (15 years ago)
Author:
vboxsync
Message:

NAT: make udp fault more clear (excluding warns on success exit of built-in service routines)

File:
1 edited

Legend:

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

    r22843 r22971  
    158158    {
    159159        bootp_input(pData, m);
    160         goto bad;
     160        goto done;
    161161    }
    162162
     
    174174        m->m_len -= sizeof(struct udpiphdr);
    175175        udp_output2(pData, NULL, m, &src, &dst, IPTOS_LOWDELAY);
    176         goto bad;
     176        goto done;
    177177    }
    178178    /*
     
    183183    {
    184184        tftp_input(pData, m);
    185         goto bad;
     185        goto done;
    186186    }
    187187
     
    301301    Log2(("NAT: UDP datagram to %R[IP4] with size(%d) claimed as bad\n",
    302302        &ip->ip_dst, ip->ip_len));
     303done:
     304    /* some services like bootp(built-in), dns(buildt-in) and dhcp don't need sockets
     305     * and create new m'buffers to send them to guest, so we'll free their incomming
     306     * buffers here.
     307     */
    303308    m_freem(pData, m);
    304309    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