-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: tcp: Revisit implementation of passive close
This change moves the handling of passive close to a callback function that handles the {CLOSE_WAIT, LAST_ACK} states. This cleans up the callback that handles the established estate, leaving only the handling for that specific state in the tcp_established() callback. Also, send the correct acknowledge number and send only an ACK rather than a FIN+ACK packet while transitioning from ESTABLISHED to CLOSE_WAIT. These changes makes Wireshark happy when the connection is closed. Change-Id: Ieeced5dff845f53a6b61af973dcf0fe3b7b8601f Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
- Loading branch information
Showing
2 changed files
with
53 additions
and
30 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