mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 21:54:57 +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))
|
if (!(flags & IPT_ADDR_USED))
|
||||||
exit_error(PARAMETER_PROBLEM,
|
exit_error(PARAMETER_PROBLEM,
|
||||||
"IPMARK target: Parameter --addr is required");
|
"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
|
static void
|
||||||
|
Reference in New Issue
Block a user