]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
pknock: remove redundant --t parameter
authorJan Engelhardt <jengelh@medozas.de>
Sat, 3 Oct 2009 11:08:26 +0000 (13:08 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 3 Oct 2009 11:08:26 +0000 (13:08 +0200)
One can already specify --t on the command line as a synonym for
--time because getopt already allows unambiguous abbrevations.

extensions/libxt_pknock.c

index 0167f7cea5d6729dbf0fbf33c289c403797edad5..e85b74f53932b912581539d638abb1c26e14bffa 100644 (file)
@@ -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"