|
@@ -3658,3 +3658,32 @@ struct sctp_chunk *sctp_make_strreset_req(
|
|
|
|
|
|
return retval;
|
|
|
}
|
|
|
+
|
|
|
+/* RE-CONFIG 4.3 (SSN/TSN RESET ALL)
|
|
|
+ * 0 1 2 3
|
|
|
+ * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
|
+ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
+ * | Parameter Type = 15 | Parameter Length = 8 |
|
|
|
+ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
+ * | Re-configuration Request Sequence Number |
|
|
|
+ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
+ */
|
|
|
+struct sctp_chunk *sctp_make_strreset_tsnreq(
|
|
|
+ const struct sctp_association *asoc)
|
|
|
+{
|
|
|
+ struct sctp_strreset_tsnreq tsnreq;
|
|
|
+ __u16 length = sizeof(tsnreq);
|
|
|
+ struct sctp_chunk *retval;
|
|
|
+
|
|
|
+ retval = sctp_make_reconf(asoc, length);
|
|
|
+ if (!retval)
|
|
|
+ return NULL;
|
|
|
+
|
|
|
+ tsnreq.param_hdr.type = SCTP_PARAM_RESET_TSN_REQUEST;
|
|
|
+ tsnreq.param_hdr.length = htons(length);
|
|
|
+ tsnreq.request_seq = htonl(asoc->strreset_outseq);
|
|
|
+
|
|
|
+ sctp_addto_chunk(retval, sizeof(tsnreq), &tsnreq);
|
|
|
+
|
|
|
+ return retval;
|
|
|
+}
|