summaryrefslogtreecommitdiff
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authorManoj Basapathi <manojbm@codeaurora.org>2021-04-05 22:32:42 +0530
committerDavid S. Miller <davem@davemloft.net>2021-04-06 16:17:20 -0700
commite880f8b3a24a73704731a7227ed5fee14bd90192 (patch)
tree2fc8966c86dcff97ad2f2d61e7524011265e1f7f /drivers/net/usb/usbnet.c
parentcc0626c2aaed8e475efdd85fa374b497a7192e35 (diff)
tcp: Reset tcp connections in SYN-SENT state
Userspace sends tcp connection (sock) destroy on network switch i.e switching the default network of the device between multiple networks(Cellular/Wifi/Ethernet). Kernel though doesn't send reset for the connections in SYN-SENT state and these connections continue to remain. Even as per RFC 793, there is no hard rule to not send RST on ABORT in this state. Modify tcp_abort and tcp_disconnect behavior to send RST for connections in syn-sent state to avoid lingering connections on network switch. Signed-off-by: Manoj Basapathi <manojbm@codeaurora.org> Signed-off-by: Sauvik Saha <ssaha@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
0 files changed, 0 insertions, 0 deletions