VirtualBox

Changeset 14291 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Nov 18, 2008 12:00:26 PM (16 years ago)
Author:
vboxsync
Message:

freeing of reassembly close on end of TCP connection was added to tcp_close routine

File:
1 edited

Legend:

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

    r14289 r14291  
    280280                m_freem(pData, m);
    281281        }
     282        /* It's static */
     283/*      if (tp->t_template)
     284 *              (void) m_free(dtom(tp->t_template));
     285 */
     286/*      free(tp, M_PCB);  */
     287        u32ptr_done(pData, ptr_to_u32(pData, tp), tp);
    282288#else /* !VBOX_WITH_BSD_TCP_REASS */
     289        struct tseg_qent *te;
    283290        DEBUG_CALL("tcp_close");
    284291        DEBUG_ARG("tp = %lx", (long )tp);
    285292        /*XXX: freeing the reassembly queue */
     293        LIST_FOREACH(te, &tp->t_segq, tqe_q) {
     294            LIST_REMOVE(te, tqe_q);
     295            m_freem(pData, te->tqe_m);
     296            free(te);
     297            tcp_reass_qsize--;
     298        }
    286299#endif /* VBOX_WITH_BSD_TCP_REASS */
    287         /* It's static */
    288 /*      if (tp->t_template)
    289  *              (void) m_free(dtom(tp->t_template));
    290  */
    291 /*      free(tp, M_PCB);  */
    292         u32ptr_done(pData, ptr_to_u32(pData, tp), tp);
    293300        free(tp);
    294301        so->so_tcpcb = 0;
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