mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user