diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-02-17 07:45:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-20 02:17:59 +0300 |
commit | bd4b9f8b4af7be15fd162276ec9a2a1d49f10270 (patch) | |
tree | f53b9caf8a1c8dcbdbee4a2efd575f79c047f46b /include/net | |
parent | 61845d2072150e896f2f18f1d879956e453ee8fd (diff) | |
download | linux-bd4b9f8b4af7be15fd162276ec9a2a1d49f10270.tar.xz |
sctp: add support for generating stream reconf resp chunk
This patch is to define Re-configuration Response Parameter described
in rfc6525 section 4.4. As optional fields are only for SSN/TSN Reset
Request Parameter, it uses another function to make that.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/sm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index 3675fde3a26e..8a85dd7fc1ec 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h @@ -270,6 +270,13 @@ struct sctp_chunk *sctp_make_strreset_tsnreq( struct sctp_chunk *sctp_make_strreset_addstrm( const struct sctp_association *asoc, __u16 out, __u16 in); +struct sctp_chunk *sctp_make_strreset_resp( + const struct sctp_association *asoc, + __u32 result, __u32 sn); +struct sctp_chunk *sctp_make_strreset_tsnresp( + struct sctp_association *asoc, + __u32 result, __u32 sn, + __u32 sender_tsn, __u32 receiver_tsn); void sctp_chunk_assign_tsn(struct sctp_chunk *); void sctp_chunk_assign_ssn(struct sctp_chunk *); |