aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2020-05-23 17:47:14 +0200
committerMichael Tuexen <tuexen@fh-muenster.de>2020-05-23 17:47:14 +0200
commit3fbc9fc07e73e4f82b3be85b2fe354052f7c6b70 (patch)
tree2b5c13ee8f5b4e6305871323e47212fc55a0b1be
parent02768fc45268c653f8251bb8db648d2d4d63c03d (diff)
downloadusrsctp-3fbc9fc07e73e4f82b3be85b2fe354052f7c6b70.tar.gz
Add support for SCTP_ASSOC_SUPPORTS_INTERLEAVING
-rw-r--r--programs/programs_helper.c3
-rw-r--r--programs/rtcweb.c3
-rw-r--r--usrsctplib/usrsctp.h13
3 files changed, 13 insertions, 6 deletions
diff --git a/programs/programs_helper.c b/programs/programs_helper.c
index a8dbd62..72f239b 100644
--- a/programs/programs_helper.c
+++ b/programs/programs_helper.c
@@ -122,6 +122,9 @@ handle_association_change_event(struct sctp_assoc_change *sac)
case SCTP_ASSOC_SUPPORTS_RE_CONFIG:
fprintf(stderr, " RE-CONFIG");
break;
+ case SCTP_ASSOC_SUPPORTS_INTERLEAVING:
+ fprintf(stderr, " INTERLEAVING");
+ break;
default:
fprintf(stderr, " UNKNOWN(0x%02x)", sac->sac_info[i]);
break;
diff --git a/programs/rtcweb.c b/programs/rtcweb.c
index d064b85..915b9ee 100644
--- a/programs/rtcweb.c
+++ b/programs/rtcweb.c
@@ -887,6 +887,9 @@ handle_association_change_event(struct sctp_assoc_change *sac)
case SCTP_ASSOC_SUPPORTS_RE_CONFIG:
printf(" RE-CONFIG");
break;
+ case SCTP_ASSOC_SUPPORTS_INTERLEAVING:
+ printf(" INTERLEAVING");
+ break;
default:
printf(" UNKNOWN(0x%02x)", sac->sac_info[i]);
break;
diff --git a/usrsctplib/usrsctp.h b/usrsctplib/usrsctp.h
index ede5489..10a1239 100644
--- a/usrsctplib/usrsctp.h
+++ b/usrsctplib/usrsctp.h
@@ -281,12 +281,13 @@ struct sctp_assoc_change {
#define SCTP_CANT_STR_ASSOC 0x0005
/* sac_info values */
-#define SCTP_ASSOC_SUPPORTS_PR 0x01
-#define SCTP_ASSOC_SUPPORTS_AUTH 0x02
-#define SCTP_ASSOC_SUPPORTS_ASCONF 0x03
-#define SCTP_ASSOC_SUPPORTS_MULTIBUF 0x04
-#define SCTP_ASSOC_SUPPORTS_RE_CONFIG 0x05
-#define SCTP_ASSOC_SUPPORTS_MAX 0x05
+#define SCTP_ASSOC_SUPPORTS_PR 0x01
+#define SCTP_ASSOC_SUPPORTS_AUTH 0x02
+#define SCTP_ASSOC_SUPPORTS_ASCONF 0x03
+#define SCTP_ASSOC_SUPPORTS_MULTIBUF 0x04
+#define SCTP_ASSOC_SUPPORTS_RE_CONFIG 0x05
+#define SCTP_ASSOC_SUPPORTS_INTERLEAVING 0x06
+#define SCTP_ASSOC_SUPPORTS_MAX 0x06
/* Address event */
struct sctp_paddr_change {