xt_sctp: support FORWARD_TSN chunk type
Subsystems (2)
PATCH 2/2 xt_sctp: support FORWARD_TSN chunk type
The latest kernel has implemented Partial Reliability Extension that defined in RFC3758.
This patch adds FORWARD_TSN chunk for tracing.
Signed-off-by Shan Wei<[email protected]>
--- extensions/libxt_sctp.c | 1 + extensions/libxt_sctp.man | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
extensions/libxt_sctp.c +1 -0
@@ -114,6 +114,7 @@ static const struct sctp_chunk_names sctp_chunk_names[] { .name = "SHUTDOWN_COMPLETE", .chunk_type = 14, .valid_flags = "-------T"}, { .name = "ASCONF", .chunk_type = 193, .valid_flags = "--------"}, { .name = "ASCONF_ACK", .chunk_type = 128, .valid_flags = "--------"}, + { .name = "FORWARD_TSN", .chunk_type = 192, .valid_flags = "--------"}, }; static void
extensions/libxt_sctp.man +1 -1
@@ -7,7 +7,7 @@ The flag letter in upper case indicates that the flag is to match if set, in the lower case indicates to match if unset. -Chunk types: DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK +Chunk types: DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK FORWARD_TSN chunk type available flags .br
Signature · 1 line
1.6.3.3
The latest kernel has implemented Partial Reliability Extension that defined in RFC3758.
This patch adds FORWARD_TSN chunk for tracing.
Signed-off-by Shan Wei<[email protected]>
---v1->v2:
1. Add FORWARD_TSN chunk info to sctp_help().
--- extensions/libxt_sctp.c | 3 ++- extensions/libxt_sctp.man | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
extensions/libxt_sctp.c +2 -1
@@ -51,7 +51,7 @@ static void sctp_help(void)" --dport ...\n" "[!] --chunk-types (all|any|none) (chunktype[:flags])+ match if all, any or none of\n" " chunktypes are present\n" -"chunktypes - DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK ALL NONE\n"); +"chunktypes - DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK FORWARD_TSN ALL NONE\n"); }static const struct option sctp_opts[] = {
@@ -114,6 +114,7 @@ static const struct sctp_chunk_names sctp_chunk_names[] { .name = "SHUTDOWN_COMPLETE", .chunk_type = 14, .valid_flags = "-------T"}, { .name = "ASCONF", .chunk_type = 193, .valid_flags = "--------"}, { .name = "ASCONF_ACK", .chunk_type = 128, .valid_flags = "--------"}, + { .name = "FORWARD_TSN", .chunk_type = 192, .valid_flags = "--------"}, }; static void
extensions/libxt_sctp.man +1 -1
@@ -7,7 +7,7 @@ The flag letter in upper case indicates that the flag is to match if set, in the lower case indicates to match if unset. -Chunk types: DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK +Chunk types: DATA INIT INIT_ACK SACK HEARTBEAT HEARTBEAT_ACK ABORT SHUTDOWN SHUTDOWN_ACK ERROR COOKIE_ECHO COOKIE_ACK ECN_ECNE ECN_CWR SHUTDOWN_COMPLETE ASCONF ASCONF_ACK FORWARD_TSN chunk type available flags .br
Signature · 1 line
1.6.3.3
Patrick McHardy
AppliedQuoted 4 lines · Shan Wei
The latest kernel has implemented Partial Reliability Extension that defined in RFC3758.
This patch adds
FORWARD_TSNchunk for tracing.
Applied, thanks.