tcp_output.c (caf93883f623ebd29989e3c35423f386ea4a41bb) | tcp_output.c (5691276b39daf90294c6a81fb6d62d667f634c92) |
---|---|
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 * --- 3601 unchanged lines hidden (view full) --- 3610 __tcp_push_pending_frames(sk, tcp_current_mss(sk), TCP_NAGLE_OFF); 3611} 3612 3613/* We get here when a process closes a file descriptor (either due to 3614 * an explicit close() or as a byproduct of exit()'ing) and there 3615 * was unread data in the receive queue. This behavior is recommended 3616 * by RFC 2525, section 2.17. -DaveM 3617 */ | 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 * --- 3601 unchanged lines hidden (view full) --- 3610 __tcp_push_pending_frames(sk, tcp_current_mss(sk), TCP_NAGLE_OFF); 3611} 3612 3613/* We get here when a process closes a file descriptor (either due to 3614 * an explicit close() or as a byproduct of exit()'ing) and there 3615 * was unread data in the receive queue. This behavior is recommended 3616 * by RFC 2525, section 2.17. -DaveM 3617 */ |
3618void tcp_send_active_reset(struct sock *sk, gfp_t priority) | 3618void tcp_send_active_reset(struct sock *sk, gfp_t priority, 3619 enum sk_rst_reason reason) |
3619{ 3620 struct sk_buff *skb; 3621 3622 TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTRSTS); 3623 3624 /* NOTE: No TCP options attached and we never retransmit this. */ 3625 skb = alloc_skb(MAX_TCP_HEADER, priority); 3626 if (!skb) { --- 796 unchanged lines hidden --- | 3620{ 3621 struct sk_buff *skb; 3622 3623 TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTRSTS); 3624 3625 /* NOTE: No TCP options attached and we never retransmit this. */ 3626 skb = alloc_skb(MAX_TCP_HEADER, priority); 3627 if (!skb) { --- 796 unchanged lines hidden --- |