]> 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)
commit70f7d0bb69be03d3fe985bab4fca313d7d84952b
tree3f4a1222b6b2da452e147f7c6eeb3ba46286a233
parent2a15d6990bf63b2fd59f9da9195d5ba8f3ba8965
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