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:
Jan Engelhardt
2008-04-09 19:21:20 +02:00
parent 3bf45b60b2
commit 59ef68fecc

View 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