View | Details | Raw Unified | Return to bug 2174
Collapse All | Expand All

(-)a/src/internet/model/tcp-socket-base.cc (+8 lines)
 Lines 1179-1184   TcpSocketBase::DoForwardUp (Ptr<Packet> packet, const Address &fromAddress, Link Here 
1179
    {
1179
    {
1180
      UpdateWindowSize (tcpHeader);
1180
      UpdateWindowSize (tcpHeader);
1181
    }
1181
    }
1182
  else if (tcpHeader.GetFlags () & TcpHeader::SYN)
1183
    {
1184
      /* The window field in a segment where the SYN bit is set (i.e., a <SYN>
1185
       * or <SYN,ACK>) MUST NOT be scaled (from RFC 7323 page 9). But should be
1186
       * saved anyway..
1187
       */
1188
      m_rWnd = tcpHeader.GetWindowSize ();
1189
    }
1182
1190
1183
  // TCP state machine code in different process functions
1191
  // TCP state machine code in different process functions
1184
  // C.f.: tcp_rcv_state_process() in tcp_input.c in Linux kernel
1192
  // C.f.: tcp_rcv_state_process() in tcp_input.c in Linux kernel

Return to bug 2174