VirtualBox

Ignore:
Timestamp:
Jul 4, 2014 4:31:32 AM (11 years ago)
Author:
vboxsync
Message:

NAT: tcp_respond - don't split window size computation into two chunks
at the opposite ends of the function.

File:
1 edited

Legend:

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

    r44528 r51865  
    126126{
    127127    register int tlen;
    128     int win = 0;
    129128
    130129    LogFlowFunc(("ENTER: tp = %R[tcpcb793], ti = %lx, m = %lx, ack = %u, seq = %u, flags = %x\n",
    131130                 tp, (long)ti, (long)m, ack, seq, flags));
    132131
    133     if (tp)
    134         win = sbspace(&tp->t_socket->so_rcv);
    135132    if (m == 0)
    136133    {
     
    174171    ti->ti_flags = flags;
    175172    if (tp)
     173    {
     174        int win = sbspace(&tp->t_socket->so_rcv);
    176175        ti->ti_win = RT_H2N_U16((u_int16_t) (win >> tp->rcv_scale));
     176    }
    177177    else
    178         ti->ti_win = RT_H2N_U16((u_int16_t)win);
     178        ti->ti_win = 0;
    179179    ti->ti_urp = 0;
    180180    ti->ti_sum = 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