]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xt_sctp: support FORWARD_TSN chunk type
authorShan Wei <shanwei@cn.fujitsu.com>
Tue, 8 Jun 2010 12:16:57 +0000 (14:16 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 8 Jun 2010 12:16:57 +0000 (14:16 +0200)
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<shanwei@cn.fujitsu.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_sctp.c
extensions/libxt_sctp.man

index 92bdb079cfce1d65997e8648df5577e8125b6e0d..d321fb8ade9d23bc4ed323090c2279d2bf953005 100644 (file)
@@ -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
index 633e40348e56ba943e579f0da379a15b2d73bfe9..9c0bd8c35db3dca6fe7e9b34cf04b6f63cd44e94 100644 (file)
@@ -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