VirtualBox

Changeset 14285 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 18, 2008 10:44:50 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39463
Message:

heade of list of TCPCB was added and initialization code was injected

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r14275 r14285  
    121121    int tcp_reass_maxseg;
    122122    int tcp_reass_overflows;
     123    struct tcpcbhead tcpcbhead;
    123124#endif /* VBOX_WITH_BSD_TCP_REASS */
    124125    /* Stuff from tftp.c */
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r14275 r14285  
    192192        tp->seg_next = tp->seg_prev = ptr_to_u32(pData, (struct tcpiphdr *)tp);
    193193#else /* !VBOX_WITH_BSD_TCP_REASS */
    194         /*XXX: inject initialization here*/
     194        LIST_INSERT_HEAD(&pData->tcpcbhead, tp, t_list);
    195195#endif /* VBOX_WITH_BSD_TCP_REASS */
    196196        tp->t_maxseg = tcp_mssdflt;
     
    264264        register struct mbuf *m;
    265265
     266#ifndef VBOX_WITH_BSD_TCP_REASS
    266267        DEBUG_CALL("tcp_close");
    267268        DEBUG_ARG("tp = %lx", (long )tp);
    268269
    269 #ifndef VBOX_WITH_BSD_TCP_REASS
    270270        /* free the reassembly queue, if any */
    271271        t = u32_to_ptr(pData, tp->seg_next, struct tcpiphdr *);
     
    277277        }
    278278#else /* !VBOX_WITH_BSD_TCP_REASS */
     279        DEBUG_CALL("tcp_close");
     280        DEBUG_ARG("tp = %lx", (long )tp);
    279281        /*XXX: freeing the reassembly queue */
    280282#endif /* VBOX_WITH_BSD_TCP_REASS */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette