VirtualBox

Changeset 41408 in vbox


Ignore:
Timestamp:
May 22, 2012 6:05:05 PM (13 years ago)
Author:
vboxsync
Message:

NAT: don't waste time on tcp connections without connection information.

File:
1 edited

Legend:

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

    r37936 r41408  
    158158{
    159159    register int rexmt;
     160    int fUninitiolizedTemplate = 0;
    160161
    161162    LogFlowFunc(("ENTER: tp:%R[tcpcb793], timer:%d\n", tp, timer));
     163    fUninitiolizedTemplate = RT_BOOL((   tp->t_template.ti_src.s_addr == INADDR_ANY
     164                                          || tp->t_template.ti_dst.s_addr == INADDR_ANY));
     165    if (fUninitiolizedTemplate)
     166    {
     167        tp = tcp_drop(pData, tp, 0);
     168        return tp;
     169    }
    162170
    163171    switch (timer)
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