]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
IPMARK: remove incorrect --and/--or check
authorJan Engelhardt <jengelh@computergmbh.de>
Wed, 9 Apr 2008 17:21:20 +0000 (19:21 +0200)
committerJan Engelhardt <jengelh@computergmbh.de>
Wed, 9 Apr 2008 17:23:08 +0000 (19:23 +0200)
It is perfectly valid for no --and-mask and also no --or-mask to
appear, in which case the IP(v4) address is taken as mark without
modification.

extensions/libxt_IPMARK.c

index 25e902540039d74ca9a88d072f0f6c2be557378d..3f47c2030c2cd8932c0f67294417112dd05125ba 100644 (file)
@@ -90,9 +90,6 @@ static void ipmark_tg_check(unsigned int flags)
        if (!(flags & IPT_ADDR_USED))
                exit_error(PARAMETER_PROBLEM,
                           "IPMARK target: Parameter --addr is required");
-       if (!(flags & (IPT_AND_MASK_USED | IPT_OR_MASK_USED)))
-               exit_error(PARAMETER_PROBLEM,
-                          "IPMARK target: Parameter --and-mask or --or-mask is required");
 }
 
 static void