diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-04-11 16:42:20 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-04-11 16:42:20 +0200 |
commit | d406e609f664a8151f9e372bbb8fd2ec2c724d35 (patch) | |
tree | 085f425cb8284cbba3fe3ea201491818051d1bb4 /extensions/libct_proto_icmp.c | |
parent | f1ea9b9233406c479c91e36c250c21dd3ef76496 (diff) | |
download | conntrack-tools-d406e609f664a8151f9e372bbb8fd2ec2c724d35.tar.gz conntrack-tools-d406e609f664a8151f9e372bbb8fd2ec2c724d35.zip |
conntrack: fix coupled-options sanity checkings
This patch extends the generic_opt_check() function to add
extra information on the possible option combinations. Under
some specific situations, like the creation and getting of
a conntrack, you may specify the original or the reply tuple
but at least one MUST be present. This handling has been
always tricky, it still remains but we're more user friendly
at least.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libct_proto_icmp.c')
-rw-r--r-- | extensions/libct_proto_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libct_proto_icmp.c b/extensions/libct_proto_icmp.c index 51366f1..3a346ed 100644 --- a/extensions/libct_proto_icmp.c +++ b/extensions/libct_proto_icmp.c @@ -103,7 +103,7 @@ static void final_check(unsigned int flags, generic_opt_check(flags, ICMP_NUMBER_OF_OPT, icmp_commands_v_options[cmd], - icmp_optflags); + icmp_optflags, NULL, 0, NULL); } static struct ctproto_handler icmp = { |