diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-04 11:32:37 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-04 11:32:37 +0200 |
commit | e44561766b025600e4af55a35166db46206dd42c (patch) | |
tree | c87efbaaee846e93bc0a5a2cb8802ba49a15b756 /extensions/libct_proto_unknown.c | |
parent | 6e5b823c8c33245d9e40a01c8ce514bc7bc489a1 (diff) | |
download | conntrack-tools-e44561766b025600e4af55a35166db46206dd42c.tar.gz conntrack-tools-e44561766b025600e4af55a35166db46206dd42c.zip |
conntrack: fix filtering for unsupported protocol
This patch fixes filtering for unsupported protocol. Thus, you can
use -L -p 47 or -L -p gre to filter `gre' traffic.
Based on an initial patch from Bryan Duff <bduff@astrocorp.com>.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libct_proto_unknown.c')
-rw-r--r-- | extensions/libct_proto_unknown.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/extensions/libct_proto_unknown.c b/extensions/libct_proto_unknown.c new file mode 100644 index 0000000..2a47704 --- /dev/null +++ b/extensions/libct_proto_unknown.c @@ -0,0 +1,34 @@ +/* + * (C) 2005-2008 by Pablo Neira Ayuso <pablo@netfilter.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + */ +#include <stdio.h> +#include <getopt.h> + +#include "conntrack.h" + +static struct option opts[] = { + {0, 0, 0, 0} +}; + +static void help(void) +{ + fprintf(stdout, " no options (unsupported)\n"); +} + +struct ctproto_handler ct_proto_unknown = { + .name = "unknown", + .help = help, + .opts = opts, + .version = VERSION, +}; + +void register_unknown(void) +{ + /* we don't actually insert this protocol in the list */ +} |