sctp: handle the init chunk matching an existing asoc
authorXin Long <lucien.xin@gmail.com>
Thu, 29 Oct 2020 07:05:09 +0000 (15:05 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 22:24:44 +0000 (15:24 -0700)
commit1c16a1862595e66d22d34799a9f328defc884369
treef60cb75d09f67e0190c53fe74dec6c370a514bba
parente38d86b354f96e3ed6f5e6c7dbb442d7107fc0bd
sctp: handle the init chunk matching an existing asoc

This is from Section 4 of draft-tuexen-tsvwg-sctp-udp-encaps-cons-03,
and it requires responding with an abort chunk with an error cause
when the udp source port of the received init chunk doesn't match the
encap port of the transport.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/sm_statefuns.c