tcp_minisocks.c (010b64f7f198c96b1c5de995646753de375843c4) | tcp_minisocks.c (ceef9ab6be7234f9e49f79769e0da88d1dccfcc7) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * Authors: Ross Biro --- 355 unchanged lines hidden (view full) --- 364 365 rcv_wnd = tcp_rwnd_init_bpf((struct sock *)req); 366 if (rcv_wnd == 0) 367 rcv_wnd = dst_metric(dst, RTAX_INITRWND); 368 else if (full_space < rcv_wnd * mss) 369 full_space = rcv_wnd * mss; 370 371 /* tcp_full_space because it is guaranteed to be the first packet */ | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * Authors: Ross Biro --- 355 unchanged lines hidden (view full) --- 364 365 rcv_wnd = tcp_rwnd_init_bpf((struct sock *)req); 366 if (rcv_wnd == 0) 367 rcv_wnd = dst_metric(dst, RTAX_INITRWND); 368 else if (full_space < rcv_wnd * mss) 369 full_space = rcv_wnd * mss; 370 371 /* tcp_full_space because it is guaranteed to be the first packet */ |
372 tcp_select_initial_window(full_space, | 372 tcp_select_initial_window(sk_listener, full_space, |
373 mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), 374 &req->rsk_rcv_wnd, 375 &req->rsk_window_clamp, 376 ireq->wscale_ok, 377 &rcv_wscale, 378 rcv_wnd); 379 ireq->rcv_wscale = rcv_wscale; 380} --- 468 unchanged lines hidden --- | 373 mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), 374 &req->rsk_rcv_wnd, 375 &req->rsk_window_clamp, 376 ireq->wscale_ok, 377 &rcv_wscale, 378 rcv_wnd); 379 ireq->rcv_wscale = rcv_wscale; 380} --- 468 unchanged lines hidden --- |