[PATCH] include: xtables: Add enum for better nft translation code

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

 



Add enum xt_op for ease to write cleaner and better code for
nft translation.

Signed-off-by: Shivani Bhardwaj <shivanib134@xxxxxxxxx>
---
 include/xtables.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/xtables.h b/include/xtables.h
index 7d97baa..0355057 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -414,6 +414,18 @@ struct xtables_globals
 	int (*compat_rev)(const char *name, uint8_t rev, int opt);
 };
 
+/*
+ * enum op-
+ *
+ * For writing clean nftables translations code
+ */
+
+enum xt_op {
+	XT_OP_EQ,
+	XT_OP_NEQ,
+	XT_OP_MAX,
+};
+
 #define XT_GETOPT_TABLEEND {.name = NULL, .has_arg = false}
 
 #ifdef __cplusplus
-- 
1.9.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