tcp_minisocks.c (4343f61103cdb8ccd6f3d5dd7168f1176a1cee37) | tcp_minisocks.c (a842fe1425cb20f457abd3f8ef98b468f83ca98b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 5 * interface as the means of communication with the user level. 6 * 7 * Implementation of the Transmission Control Protocol(TCP). 8 * --- 260 unchanged lines hidden (view full) --- 269 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale; 270 tcptw->tw_rcv_nxt = tp->rcv_nxt; 271 tcptw->tw_snd_nxt = tp->snd_nxt; 272 tcptw->tw_rcv_wnd = tcp_receive_window(tp); 273 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; 274 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp; 275 tcptw->tw_ts_offset = tp->tsoffset; 276 tcptw->tw_last_oow_ack_time = 0; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 5 * interface as the means of communication with the user level. 6 * 7 * Implementation of the Transmission Control Protocol(TCP). 8 * --- 260 unchanged lines hidden (view full) --- 269 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale; 270 tcptw->tw_rcv_nxt = tp->rcv_nxt; 271 tcptw->tw_snd_nxt = tp->snd_nxt; 272 tcptw->tw_rcv_wnd = tcp_receive_window(tp); 273 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; 274 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp; 275 tcptw->tw_ts_offset = tp->tsoffset; 276 tcptw->tw_last_oow_ack_time = 0; |
277 | 277 tcptw->tw_tx_delay = tp->tcp_tx_delay; |
278#if IS_ENABLED(CONFIG_IPV6) 279 if (tw->tw_family == PF_INET6) { 280 struct ipv6_pinfo *np = inet6_sk(sk); 281 282 tw->tw_v6_daddr = sk->sk_v6_daddr; 283 tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; 284 tw->tw_tclass = np->tclass; 285 tw->tw_flowlabel = be32_to_cpu(np->flow_label & IPV6_FLOWLABEL_MASK); | 278#if IS_ENABLED(CONFIG_IPV6) 279 if (tw->tw_family == PF_INET6) { 280 struct ipv6_pinfo *np = inet6_sk(sk); 281 282 tw->tw_v6_daddr = sk->sk_v6_daddr; 283 tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; 284 tw->tw_tclass = np->tclass; 285 tw->tw_flowlabel = be32_to_cpu(np->flow_label & IPV6_FLOWLABEL_MASK); |
286 tw->tw_txhash = sk->sk_txhash; |
|
286 tw->tw_ipv6only = sk->sk_ipv6only; 287 } 288#endif 289 290#ifdef CONFIG_TCP_MD5SIG 291 /* 292 * The timewait bucket does not have the key DB from the 293 * sock structure. We just make a quick copy of the --- 545 unchanged lines hidden --- | 287 tw->tw_ipv6only = sk->sk_ipv6only; 288 } 289#endif 290 291#ifdef CONFIG_TCP_MD5SIG 292 /* 293 * The timewait bucket does not have the key DB from the 294 * sock structure. We just make a quick copy of the --- 545 unchanged lines hidden --- |