From: Jan Engelhardt Date: Sun, 1 May 2011 17:58:56 +0000 (+0200) Subject: libxt_tos: add inversion support back again X-Git-Tag: v1.4.11~18^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06312dab6c530a214a4e7bad1b2329381430bddc;p=thirdparty%2Fiptables.git libxt_tos: add inversion support back again It was unfortunately removed during the option parser switch. Signed-off-by: Jan Engelhardt --- 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, };