From: Jan Engelhardt Date: Wed, 9 Apr 2008 17:21:20 +0000 (+0200) Subject: IPMARK: remove incorrect --and/--or check X-Git-Tag: v1.5.4~6^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ef68feccd6070238bf07b8832f64768a9ed131;p=thirdparty%2Fxtables-addons.git IPMARK: remove incorrect --and/--or check 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. --- diff --git a/extensions/libxt_IPMARK.c b/extensions/libxt_IPMARK.c index 25e9025..3f47c20 100644 --- a/extensions/libxt_IPMARK.c +++ b/extensions/libxt_IPMARK.c @@ -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