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

2016-08-17 Thread Pablo Neira Ayuso
On Wed, Aug 17, 2016 at 01:00:08PM +0200, Carlos Falgueras García wrote: > 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 > funct

[PATCH 1/3 v5 libnftnl] Implement rule comparison

2016-08-17 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 pointer