mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-25 13:10:31 +00:00
[SCTP]: Allow linger to abort 1-N style sockets.
Enable SO_LINGER functionality for 1-N style sockets. The socket API draft will be clarfied to allow for this functionality. The linger settings will apply to all associations on a given socket. Signed-off-by: Vladislav Yasevich <vladislav.yasevich@hp.com> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
This commit is contained in:
parent
a601266e4f
commit
b89498a1c2
@ -1242,13 +1242,13 @@ SCTP_STATIC void sctp_close(struct sock *sk, long timeout)
|
||||
if (sctp_state(asoc, CLOSED)) {
|
||||
sctp_unhash_established(asoc);
|
||||
sctp_association_free(asoc);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
} else if (sock_flag(sk, SOCK_LINGER) &&
|
||||
!sk->sk_lingertime)
|
||||
sctp_primitive_ABORT(asoc, NULL);
|
||||
else
|
||||
sctp_primitive_SHUTDOWN(asoc, NULL);
|
||||
} else
|
||||
if (sock_flag(sk, SOCK_LINGER) && !sk->sk_lingertime)
|
||||
sctp_primitive_ABORT(asoc, NULL);
|
||||
else
|
||||
sctp_primitive_SHUTDOWN(asoc, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user