From: Jan Engelhardt Date: Sat, 3 Oct 2009 11:08:26 +0000 (+0200) Subject: pknock: remove redundant --t parameter X-Git-Tag: v1.19~2^2~36 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=v1.18-56-g35b00f8;p=thirdparty%2Fxtables-addons.git pknock: remove redundant --t parameter One can already specify --t on the command line as a synonym for --time because getopt already allows unambiguous abbrevations. --- diff --git a/extensions/libxt_pknock.c b/extensions/libxt_pknock.c index 0167f7c..e85b74f 100644 --- a/extensions/libxt_pknock.c +++ b/extensions/libxt_pknock.c @@ -23,7 +23,6 @@ static const struct option pknock_opts[] = { /* .name, .has_arg, .flag, .val */ { "knockports", 1, 0, 'k' }, - { "t", 1, 0, 't' }, { "time", 1, 0, 't' }, { "name", 1, 0, 'n' }, { "opensecret", 1, 0, 'a' }, @@ -41,7 +40,6 @@ static void pknock_help(void) " --knockports port[,port,port,...] " "Matches destination port(s).\n" " --time seconds\n" - " --t ... " "Time between port match.\n" " --secure " "hmac must be in the packets.\n"