ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/sys/netinet/tcp_usrreq.c
(Generate patch)

Comparing trunk/sys/netinet/tcp_usrreq.c (file contents):
Revision 3 by laffer1, Sat Feb 25 02:29:52 2006 UTC vs.
Revision 729 by laffer1, Wed Feb 7 15:50:03 2007 UTC

# Line 882 | Line 882 | tcp_connect(tp, nam, td)
882          inp->inp_laddr = laddr;
883          in_pcbrehash(inp);
884  
885 <        /* Compute window scaling to request.  */
885 >        /*
886 >         * Compute window scaling to request:
887 >         * Scale to fit into sweet spot.  See tcp_syncache.c.
888 >         * XXX: This should be moved to tcp_output().
889 >         */
890          while (tp->request_r_scale < TCP_MAX_WINSHIFT &&
891 <            (TCP_MAXWIN << tp->request_r_scale) < so->so_rcv.sb_hiwat)
891 >            (0x1 << tp->request_r_scale) < tcp_minmss)       /* XXX */
892                  tp->request_r_scale++;
893  
894          soisconnecting(so);
# Line 1191 | Line 1195 | tcp_attach(so)
1195                  if (error)
1196                          return (error);
1197          }
1198 +        so->so_rcv.sb_flags |= SB_AUTOSIZE;
1199 +        so->so_snd.sb_flags |= SB_AUTOSIZE;
1200          error = in_pcballoc(so, &tcbinfo, "tcpinp");
1201          if (error)
1202                  return (error);

Comparing trunk/sys/netinet/tcp_usrreq.c (property cvs2svn:cvs-rev):
Revision 3 by laffer1, Sat Feb 25 02:29:52 2006 UTC vs.
Revision 729 by laffer1, Wed Feb 7 15:50:03 2007 UTC

# Line 1 | Line 1
1 < 1.1.1.1
1 > 1.2

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines