diff options
author | Lutz Jaenicke <ljaenicke@innominate.com> | 2011-05-18 15:11:47 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-05-18 23:22:54 +0200 |
commit | ae06c6dc6d68d11ed15d4c6c47b7b7a709d3c9cb (patch) | |
tree | 92cec8100a677680af395411c4a8e970df525160 /extensions/libipt_REDIRECT.c | |
parent | c02c92d1fcaa1223caf9a5eef32bedcb78f1e714 (diff) |
libipt_REDIRECT: "--to-ports" is not mandatory
The REDIRECT target can be called without the --to-ports option
being specified. From the manual page:
...without this, the destination port is never altered.
Signed-off-by: Lutz Jaenicke <ljaenicke@innominate.com>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libipt_REDIRECT.c')
-rw-r--r-- | extensions/libipt_REDIRECT.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c index 426a7463..e67360a0 100644 --- a/extensions/libipt_REDIRECT.c +++ b/extensions/libipt_REDIRECT.c @@ -23,8 +23,7 @@ static void REDIRECT_help(void) } static const struct xt_option_entry REDIRECT_opts[] = { - {.name = "to-ports", .id = O_TO_PORTS, .type = XTTYPE_STRING, - .flags = XTOPT_MAND}, + {.name = "to-ports", .id = O_TO_PORTS, .type = XTTYPE_STRING}, {.name = "random", .id = O_RANDOM, .type = XTTYPE_NONE}, XTOPT_TABLEEND, }; |