sctp: fix missing send up SCTP_SENDER_DRY_EVENT when subscribe it
authorWei Yongjun <yjwei@cn.fujitsu.com>
Sat, 2 Jul 2011 09:28:04 +0000 (09:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jul 2011 11:10:26 +0000 (04:10 -0700)
commit949123016a2ef578009b6aa3e98d45d1a154ebfb
treeda0f3af2817c235155efd813094710564a7d515a
parentf03d78db65085609938fdb686238867e65003181
sctp: fix missing send up SCTP_SENDER_DRY_EVENT when subscribe it

We forgot to send up SCTP_SENDER_DRY_EVENT notification when
user app subscribes to this event, and there is no data to be
sent or retransmit.

This is required by the Socket API and used by the DTLS/SCTP
implementation.

Reported-by: Michael Tüxen <Michael.Tuexen@lurchi.franken.de>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Tested-by: Robin Seggelmann <seggelmann@fh-muenster.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c