]> 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)
commita646458e9d1458f1a158961a4c05fd84a196c711
tree3f4a1222b6b2da452e147f7c6eeb3ba46286a233
parent22b88b03f863538d46faa2785c2c06c962d9b00a
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