summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_tos.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-05-01 19:58:56 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-05-08 15:01:38 +0200
commit06312dab6c530a214a4e7bad1b2329381430bddc (patch)
tree60a85301563b690a551997fea2c0d3e313cd3839 /extensions/libxt_tos.c
parent753bbed383cde1c18e05b5b726b6c28afbde3a3c (diff)
libxt_tos: add inversion support back again
It was unfortunately removed during the option parser switch. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_tos.c')
-rw-r--r--extensions/libxt_tos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_tos.c b/extensions/libxt_tos.c
index 7646a4f3..81c096f9 100644
--- a/extensions/libxt_tos.c
+++ b/extensions/libxt_tos.c
@@ -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,
};