]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
main: add missing `OPT_NUMERIC_PROTO` long option.
authorJeremy Sowden <jeremy@azazel.net>
Tue, 22 Oct 2019 20:58:54 +0000 (21:58 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 23 Oct 2019 20:32:48 +0000 (22:32 +0200)
The `options` array is missing an entry for `OPT_NUMERIC_PROTO`.  Add a
new option, `--numeric-protocol`, consistent with the documentation.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/main.c

index 952d5432ae007f4f54e388b5f857e6ce8def104d..6035bcd80f3e3b3d8581be9c88f7b99e495298f8 100644 (file)
@@ -116,6 +116,10 @@ static const struct option options[] = {
                .name           = "numeric-priority",
                .val            = OPT_NUMERIC_PRIO,
        },
+       {
+               .name           = "numeric-protocol",
+               .val            = OPT_NUMERIC_PROTO,
+       },
        {
                .name           = "numeric-time",
                .val            = OPT_NUMERIC_TIME,