diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-18 01:48:33 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-02-19 15:28:47 +0100 |
commit | 7a1043bcb6ac6315c991cf02c9a12568398fc837 (patch) | |
tree | 22becaef2a9c3cdea030a609248512fb589a23ed | |
parent | 86786bf3a5e875232ae63d9f9b3dbb542ac2e392 (diff) |
libip6t_dst: remove unimplemented --dst-not-strict
This was never ever implemented in the kernel, so just remove it.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | extensions/libip6t_dst.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/extensions/libip6t_dst.c b/extensions/libip6t_dst.c index 8b656a66..74f6029f 100644 --- a/extensions/libip6t_dst.c +++ b/extensions/libip6t_dst.c @@ -25,7 +25,6 @@ IP6T_OPTS_OPTSNR); static const struct option dst_opts[] = { {.name = "dst-len", .has_arg = true, .val = '1'}, {.name = "dst-opts", .has_arg = true, .val = '2'}, - {.name = "dst-not-strict", .has_arg = true, .val = '3'}, XT_GETOPT_TABLEEND, }; @@ -135,17 +134,6 @@ static int dst_parse(int c, char **argv, int invert, unsigned int *flags, optinfo->flags |= IP6T_OPTS_OPTS; *flags |= IP6T_OPTS_OPTS; break; - case '3': - if (*flags & IP6T_OPTS_NSTRICT) - xtables_error(PARAMETER_PROBLEM, - "Only one `--dst-not-strict' allowed"); - if ( !(*flags & IP6T_OPTS_OPTS) ) - xtables_error(PARAMETER_PROBLEM, - "`--dst-opts ...' required before " - "`--dst-not-strict'"); - optinfo->flags |= IP6T_OPTS_NSTRICT; - *flags |= IP6T_OPTS_NSTRICT; - break; } return 1; @@ -183,9 +171,6 @@ static void dst_print(const void *ip, const struct xt_entry_match *match, print_options(optinfo->optsnr, (uint16_t *)optinfo->opts); - if (optinfo->flags & IP6T_OPTS_NSTRICT) - printf(" not-strict"); - if (optinfo->invflags & ~IP6T_OPTS_INV_MASK) printf(" Unknown invflags: 0x%X", optinfo->invflags & ~IP6T_OPTS_INV_MASK); @@ -205,9 +190,6 @@ static void dst_save(const void *ip, const struct xt_entry_match *match) printf(" --dst-opts"); print_options(optinfo->optsnr, (uint16_t *)optinfo->opts); - - if (optinfo->flags & IP6T_OPTS_NSTRICT) - printf(" --dst-not-strict"); } static struct xtables_match dst_mt6_reg = { |