From 59ef68feccd6070238bf07b8832f64768a9ed131 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 9 Apr 2008 19:21:20 +0200 Subject: [PATCH] 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. --- extensions/libxt_IPMARK.c | 3 --- 1 file changed, 3 deletions(-) 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