]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xt_sctp: add the missing chunk types in sctp_help
authorXin Long <lucien.xin@gmail.com>
Tue, 21 Feb 2023 17:19:42 +0000 (12:19 -0500)
committerPhil Sutter <phil@nwl.cc>
Tue, 21 Feb 2023 17:42:58 +0000 (18:42 +0100)
Add the missing chunk types in sctp_help(), so that the help cmd can
display these chunk types as below:

  # iptables -p sctp --help

  chunktypes - ... I_DATA RE_CONFIG PAD ... I_FORWARD_TSN ALL NONE

Fixes: 6b04d9c34e25 ("xt_sctp: support a couple of new chunk types")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_sctp.c

index fe5f5621a033d5ddae1322ded11084488a879c48..6e2b2745dcbd565424f778fc05b5eabd250ebf6f 100644 (file)
@@ -50,7 +50,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 FORWARD_TSN 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 I_DATA RE_CONFIG PAD ASCONF ASCONF_ACK FORWARD_TSN I_FORWARD_TSN ALL NONE\n");
 }
 
 static const struct option sctp_opts[] = {