sctp: add SCTP_ADDR_ADDED event
authorXin Long <lucien.xin@gmail.com>
Tue, 8 Oct 2019 11:27:33 +0000 (19:27 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 00:06:57 +0000 (17:06 -0700)
commit4b7740324ed86aa4b02cef134da4b79078294d72
treeea57109b1475923c4f92e4d6f6790d96ceb54464
parent75792624783659b6712b8cacb01fc0f04150eebb
sctp: add SCTP_ADDR_ADDED event

A helper sctp_ulpevent_nofity_peer_addr_change() will be extracted
to make peer_addr_change event and enqueue it, and the helper will
be called in sctp_assoc_add_peer() to send SCTP_ADDR_ADDED event.

This event is described in rfc6458#section-6.1.2:

  SCTP_ADDR_ADDED:  The address is now 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>
include/net/sctp/ulpevent.h
net/sctp/associola.c
net/sctp/ulpevent.c