tcp.h (d06a99045837d3f4d5431793c4c390b0daf2a08d) | tcp.h (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 * Definitions for the TCP module. 7 * 8 * Version: @(#)tcp.h 1.0.5 05/23/93 --- 233 unchanged lines hidden (view full) --- 242#define TFO_SERVER_WO_SOCKOPT1 0x400 243 244 245/* sysctl variables for tcp */ 246extern int sysctl_tcp_max_orphans; 247extern long sysctl_tcp_mem[3]; 248extern int sysctl_tcp_wmem[3]; 249extern int sysctl_tcp_rmem[3]; | 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 * Definitions for the TCP module. 7 * 8 * Version: @(#)tcp.h 1.0.5 05/23/93 --- 233 unchanged lines hidden (view full) --- 242#define TFO_SERVER_WO_SOCKOPT1 0x400 243 244 245/* sysctl variables for tcp */ 246extern int sysctl_tcp_max_orphans; 247extern long sysctl_tcp_mem[3]; 248extern int sysctl_tcp_wmem[3]; 249extern int sysctl_tcp_rmem[3]; |
250extern int sysctl_tcp_workaround_signed_windows; | |
251 252#define TCP_RACK_LOSS_DETECTION 0x1 /* Use RACK to detect losses */ 253 254extern int sysctl_tcp_limit_output_bytes; 255extern int sysctl_tcp_challenge_ack_limit; 256extern int sysctl_tcp_min_tso_segs; 257extern int sysctl_tcp_min_rtt_wlen; 258extern int sysctl_tcp_autocorking; --- 1038 unchanged lines hidden (view full) --- 1297 ca_ops->cong_control) 1298 return; 1299 delta = tcp_jiffies32 - tp->lsndtime; 1300 if (delta > inet_csk(sk)->icsk_rto) 1301 tcp_cwnd_restart(sk, delta); 1302} 1303 1304/* Determine a window scaling and initial window to offer. */ | 250 251#define TCP_RACK_LOSS_DETECTION 0x1 /* Use RACK to detect losses */ 252 253extern int sysctl_tcp_limit_output_bytes; 254extern int sysctl_tcp_challenge_ack_limit; 255extern int sysctl_tcp_min_tso_segs; 256extern int sysctl_tcp_min_rtt_wlen; 257extern int sysctl_tcp_autocorking; --- 1038 unchanged lines hidden (view full) --- 1296 ca_ops->cong_control) 1297 return; 1298 delta = tcp_jiffies32 - tp->lsndtime; 1299 if (delta > inet_csk(sk)->icsk_rto) 1300 tcp_cwnd_restart(sk, delta); 1301} 1302 1303/* Determine a window scaling and initial window to offer. */ |
1305void tcp_select_initial_window(int __space, __u32 mss, __u32 *rcv_wnd, | 1304void tcp_select_initial_window(const struct sock *sk, int __space, 1305 __u32 mss, __u32 *rcv_wnd, |
1306 __u32 *window_clamp, int wscale_ok, 1307 __u8 *rcv_wscale, __u32 init_rcv_wnd); 1308 1309static inline int tcp_win_from_space(const struct sock *sk, int space) 1310{ 1311 int tcp_adv_win_scale = sock_net(sk)->ipv4.sysctl_tcp_adv_win_scale; 1312 1313 return tcp_adv_win_scale <= 0 ? --- 787 unchanged lines hidden --- | 1306 __u32 *window_clamp, int wscale_ok, 1307 __u8 *rcv_wscale, __u32 init_rcv_wnd); 1308 1309static inline int tcp_win_from_space(const struct sock *sk, int space) 1310{ 1311 int tcp_adv_win_scale = sock_net(sk)->ipv4.sysctl_tcp_adv_win_scale; 1312 1313 return tcp_adv_win_scale <= 0 ? --- 787 unchanged lines hidden --- |