Commit d46e416
sctp: sctp should change socket state when shutdown is received
Now sctp doesn't change socket state upon shutdown reception. It changes
just the assoc state, even though it's a TCP-style socket.
For some cases, if we really need to check sk->sk_state, it's necessary to
fix this issue, at least when we use ss or netstat to dump, we can get a
more exact information.
As an improvement, we will change sk->sk_state when we change asoc->state
to SHUTDOWN_RECEIVED, and also do it in sctp_shutdown to keep consistent
with sctp_close.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo R. Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent d6cf3a8 commit d46e416
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
| 809 | + | |
| 810 | + | |
810 | 811 | | |
| 812 | + | |
811 | 813 | | |
812 | 814 | | |
813 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4195 | 4195 | | |
4196 | 4196 | | |
4197 | 4197 | | |
| 4198 | + | |
4198 | 4199 | | |
4199 | 4200 | | |
4200 | 4201 | | |
| |||
7566 | 7567 | | |
7567 | 7568 | | |
7568 | 7569 | | |
7569 | | - | |
| 7570 | + | |
| 7571 | + | |
7570 | 7572 | | |
| 7573 | + | |
| 7574 | + | |
| 7575 | + | |
7571 | 7576 | | |
7572 | | - | |
7573 | 7577 | | |
7574 | 7578 | | |
7575 | 7579 | | |
| |||
0 commit comments