VirtualBox

Changeset 58542 in vbox


Ignore:
Timestamp:
Nov 2, 2015 2:56:15 PM (9 years ago)
Author:
vboxsync
Message:

NAT/Net: pxtcp_pcb_heard, pxtcp_pcb_accept_confirm - be preapred for
initial SYN pbuf not passed to us. Follow up to r103830. This is for
playing with proxy-like early accept for normal listening pcbs for
which we don't have a way to pass the pbuf yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxtcp.c

    r58541 r58542  
    10431043
    10441044    /* save initial datagram in case we need to reply with ICMP */
    1045     pbuf_ref(p);
    1046     pxtcp->unsent = p;
    1047     pxtcp->netif = ip_current_netif();
     1045    if (p != NULL) {
     1046        pbuf_ref(p);
     1047        pxtcp->unsent = p;
     1048        pxtcp->netif = ip_current_netif();
     1049    }
    10481050
    10491051    pxtcp_pcb_associate(pxtcp, newpcb);
     
    12131215
    12141216    /* we are not going to reply with ICMP, so we can drop initial pbuf */
    1215     LWIP_ASSERT1(pxtcp->unsent != NULL);
    1216     pbuf_free(pxtcp->unsent);
    1217     pxtcp->unsent = NULL;
     1217    if (pxtcp->unsent != NULL) {
     1218        pbuf_free(pxtcp->unsent);
     1219        pxtcp->unsent = NULL;
     1220    }
    12181221
    12191222    error = tcp_proxy_accept_confirm(pxtcp->pcb);
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