summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/sm.h
diff options
context:
space:
mode:
authorXin Long2017-01-17 17:44:42 +0100
committerDavid S. Miller2017-01-18 20:55:09 +0100
commitcc16f00f6529aa2378f2b949a6f68e9dc6dec363 (patch)
tree337cb3167d82336181eb4c4a44ab543dd54e2502 /include/net/sctp/sm.h
parentMerge branch 'rework-inet_csk_get_port' (diff)
downloadkernel-qcow2-linux-cc16f00f6529aa2378f2b949a6f68e9dc6dec363.tar.gz
kernel-qcow2-linux-cc16f00f6529aa2378f2b949a6f68e9dc6dec363.tar.xz
kernel-qcow2-linux-cc16f00f6529aa2378f2b949a6f68e9dc6dec363.zip
sctp: add support for generating stream reconf ssn reset request chunk
This patch is to add asoc strreset_outseq and strreset_inseq for saving the reconf request sequence, initialize them when create assoc and process init, and also to define Incoming and Outgoing SSN Reset Request Parameter described in rfc6525 section 4.1 and 4.2, As they can be in one same chunk as section rfc6525 3.1-3 describes, it makes them in one function. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/sm.h')
-rw-r--r--include/net/sctp/sm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h
index ca6c971dd74a..3462cb08f51a 100644
--- a/include/net/sctp/sm.h
+++ b/include/net/sctp/sm.h
@@ -259,7 +259,10 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc,
__u32 new_cum_tsn, size_t nstreams,
struct sctp_fwdtsn_skip *skiplist);
struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc);
-
+struct sctp_chunk *sctp_make_strreset_req(
+ const struct sctp_association *asoc,
+ __u16 stream_num, __u16 *stream_list,
+ bool out, bool in);
void sctp_chunk_assign_tsn(struct sctp_chunk *);
void sctp_chunk_assign_ssn(struct sctp_chunk *);