From: Xin Long Date: Tue, 8 Oct 2019 11:27:34 +0000 (+0800) Subject: sctp: add SCTP_ADDR_REMOVED event X-Git-Tag: v5.5-rc1~174^2~383^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c446f50ce5f7ad116aedbdbf65e26876437f6b5a;p=thirdparty%2Flinux.git 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 Acked-by: Neil Horman Signed-off-by: Jakub Kicinski --- diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 55aad70bb2d36..0d3d7ce7045e2 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); }