]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add the error cause for new encapsulation port restart
authorXin Long <lucien.xin@gmail.com>
Thu, 29 Oct 2020 07:05:08 +0000 (15:05 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 22:24:40 +0000 (15:24 -0700)
commite38d86b354f96e3ed6f5e6c7dbb442d7107fc0bd
tree3f4a1222b6b2da452e147f7c6eeb3ba46286a233
parent259db53ba5933a2a507238c47ffa52c906c27df0
sctp: add the error cause for new encapsulation port restart

This patch is to add the function to make the abort chunk with
the error cause for new encapsulation port restart, defined
on Section 4.4 in draft-tuexen-tsvwg-sctp-udp-encaps-cons-03.

v1->v2:
  - no change.
v2->v3:
  - no need to call htons() when setting nep.cur_port/new_port.

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>
include/linux/sctp.h
include/net/sctp/sm.h
net/sctp/sm_make_chunk.c