]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_tos: add inversion support back again
authorJan Engelhardt <jengelh@medozas.de>
Sun, 1 May 2011 17:58:56 +0000 (19:58 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 8 May 2011 13:01:38 +0000 (15:01 +0200)
It was unfortunately removed during the option parser switch.

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

index 7646a4f3f63a7a77552a4bfff453334a3eefded0..81c096f9c46f6a8840e3613965e94ff8104c840d 100644 (file)
@@ -26,13 +26,13 @@ enum {
 
 static const struct xt_option_entry tos_mt_opts_v0[] = {
        {.name = "tos", .id = O_TOS, .type = XTTYPE_TOSMASK,
-        .flags = XTOPT_MAND, .max = 0xFF},
+        .flags = XTOPT_INVERT | XTOPT_MAND, .max = 0xFF},
        XTOPT_TABLEEND,
 };
 
 static const struct xt_option_entry tos_mt_opts[] = {
        {.name = "tos", .id = O_TOS, .type = XTTYPE_TOSMASK,
-        .flags = XTOPT_MAND, .max = 0x3F},
+        .flags = XTOPT_INVERT | XTOPT_MAND, .max = 0x3F},
        XTOPT_TABLEEND,
 };