|
@@ -2205,8 +2205,13 @@ static int sctp_setsockopt_events(struct sock *sk, char __user *optval,
|
|
|
if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen))
|
|
if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen))
|
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
- * At the time when a user app subscribes to SCTP_SENDER_DRY_EVENT,
|
|
|
|
|
|
|
+ if (sctp_sk(sk)->subscribe.sctp_data_io_event)
|
|
|
|
|
+ pr_warn_ratelimited(DEPRECATED "%s (pid %d) "
|
|
|
|
|
+ "Requested SCTP_SNDRCVINFO event.\n"
|
|
|
|
|
+ "Use SCTP_RCVINFO through SCTP_RECVRCVINFO option instead.\n",
|
|
|
|
|
+ current->comm, task_pid_nr(current));
|
|
|
|
|
+
|
|
|
|
|
+ /* At the time when a user app subscribes to SCTP_SENDER_DRY_EVENT,
|
|
|
* if there is no data to be sent or retransmit, the stack will
|
|
* if there is no data to be sent or retransmit, the stack will
|
|
|
* immediately send up this notification.
|
|
* immediately send up this notification.
|
|
|
*/
|
|
*/
|