forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: fix invalid addr occupy 'add_addr_accepted'
This patch fixes an issue where an invalid address is announced as a signal, the 'add_addr_accepted' is incorrectly added twice. If reach the limits, even the invalid connection is removed from conn_list by mptcp_worker, the variable is not updated, so the available address can not be added. When 'ADD_ADDR' adds an invalid address in the LAN, it will trigger the 'tcp_done_with_error' at the TCP level due to 'icmp_unreach'. At this point, 'RETRANS_ADDR' will increment 'add_addr_accepted' again. This patch is also helpful for issue#498. Closes: multipath-tcp/mptcp_net-next#498 Signed-off-by: Gang Yan <[email protected]>
- Loading branch information
1 parent
dabd9bd
commit cdeb506
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters