]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libip6t_dst: remove unimplemented --dst-not-strict
authorJan Engelhardt <jengelh@medozas.de>
Fri, 18 Feb 2011 00:48:33 +0000 (01:48 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 19 Feb 2011 14:28:47 +0000 (15:28 +0100)
This was never ever implemented in the kernel, so just remove it.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libip6t_dst.c

index 8b656a6666aeac22c8b3911451351f015559943e..74f6029fffb6cbc2de91d6e186328bd033b6b452 100644 (file)
@@ -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 = {