From: Shivani Bhardwaj Date: Wed, 23 Dec 2015 14:21:33 +0000 (+0530) Subject: include: xtables: Add enum for better nft translation code X-Git-Tag: v1.6.1~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14b647d2edfb85fa93336cdf41348ec471410228;p=thirdparty%2Fiptables.git 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 --- 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