With "!flags", any option will be accepted. The extensions however
want one very specific option to be used (or wrong help text).
Commits: DNAT: v1.3.8~23, osf: v1.4.6~3
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
static void DNAT_check(unsigned int flags)
{
- if (!flags)
+ if (!(flags & IPT_DNAT_OPT_DEST))
xtables_error(PARAMETER_PROBLEM,
"You must specify --to-destination");
}
{
if (!flags)
xtables_error(PARAMETER_PROBLEM,
- "ECN target: Parameter --ecn-tcp-remove is required");
+ "ECN target: An operation is required");
}
static void ECN_print(const void *ip, const struct xt_entry_target *target,
static void osf_final_check(unsigned int flags)
{
- if (!flags)
+ if (!(flags & XT_OSF_GENRE))
xtables_error(PARAMETER_PROBLEM,
"OS fingerprint match: You must specify `--genre'");
}