[PATCH 01/13] libxt_tos: add inversion support back again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It was unfortunately removed during the option parser switch.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 extensions/libxt_tos.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions/libxt_tos.c b/extensions/libxt_tos.c
index 7646a4f..81c096f 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,
 };
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux