From 14b647d2edfb85fa93336cdf41348ec471410228 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Wed, 23 Dec 2015 19:51:33 +0530 Subject: include: xtables: Add enum for better nft translation code Add enum xt_op for ease to write cleaner and better code for nft translation. Signed-off-by: Shivani Bhardwaj Signed-off-by: Pablo Neira Ayuso --- include/xtables.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/xtables.h') diff --git a/include/xtables.h b/include/xtables.h index 7d97baaf..175ae50b 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -416,6 +416,17 @@ struct xtables_globals #define XT_GETOPT_TABLEEND {.name = NULL, .has_arg = false} +/* + * enum op- + * + * For writing clean nftables translations code + */ +enum xt_op { + XT_OP_EQ, + XT_OP_NEQ, + XT_OP_MAX, +}; + #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3