diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-10-08 13:27:34 +0200 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-10 02:06:58 +0200 |
commit | c446f50ce5f7ad116aedbdbf65e26876437f6b5a (patch) | |
tree | be59e7209b1406ea49f85ecbb54715970b513dd9 /net/sctp/associola.c | |
parent | sctp: add SCTP_ADDR_ADDED event (diff) | |
download | linux-c446f50ce5f7ad116aedbdbf65e26876437f6b5a.tar.xz linux-c446f50ce5f7ad116aedbdbf65e26876437f6b5a.zip |
sctp: add SCTP_ADDR_REMOVED event
sctp_ulpevent_nofity_peer_addr_change() is called in
sctp_assoc_rm_peer() to send SCTP_ADDR_REMOVED event
when this transport is removed from the asoc.
This event is described in rfc6458#section-6.1.2:
SCTP_ADDR_REMOVED: The address is no longer part of the
association.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r-- | net/sctp/associola.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 55aad70bb2d3..0d3d7ce7045e 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -569,6 +569,7 @@ void sctp_assoc_rm_peer(struct sctp_association *asoc, asoc->peer.transport_count--; + sctp_ulpevent_nofity_peer_addr_change(peer, SCTP_ADDR_REMOVED, 0); sctp_transport_free(peer); } |