Re: [PATCH 1/3 v4 libnftnl] Implement rule comparison

2016-08-16 Thread Pablo Neira Ayuso
On Tue, Aug 16, 2016 at 12:21:24PM +0200, Carlos Falgueras García wrote: > diff --git a/src/expr.c b/src/expr.c > index e5c1dd3..7f32055 100644 > --- a/src/expr.c > +++ b/src/expr.c > @@ -203,6 +203,20 @@ const char *nftnl_expr_get_str(const struct nftnl_expr > *expr, uint16_t type) > } >

[PATCH 1/3 v4 libnftnl] Implement rule comparison

2016-08-16 Thread Carlos Falgueras García
This patch implements the function 'bool nftnl_rule_cmp(const struct nftnl_rule *r, const struct nftnl_rule *r2)' for rule comparison. Expressions within rules need to be compared, so also has been created the function 'nftnl_expr_cmp' which calls new field within 'nfntl_expr_': a function