Message ID | 20151223142132.GA15698@gmail.com |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
On Wed, Dec 23, 2015 at 7:51 PM, Shivani Bhardwaj <shivanib134@gmail.com> wrote: > Add enum xt_op for ease to write cleaner and better code for > nft translation. > > Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> > --- > 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 > Please apply this one before all others. Thanks -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Dec 23, 2015 at 07:51:33PM +0530, Shivani Bhardwaj wrote: > Add enum xt_op for ease to write cleaner and better code for > nft translation. Applied, thanks Shivani. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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
Add enum xt_op for ease to write cleaner and better code for nft translation. Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> --- include/xtables.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)