Re: [PATCH 1/4, V3, libnftnl] rule: Implement internal expression iterator

2016-08-10 Thread Pablo Neira Ayuso
On Wed, Aug 10, 2016 at 01:56:32PM +0200, Carlos Falgueras García wrote: > On 08/10/2016 01:41 PM, Pablo Neira Ayuso wrote: > >>@@ -1025,10 +1033,16 @@ int nftnl_expr_foreach(struct nftnl_rule *r, > >> } > >> EXPORT_SYMBOL_ALIAS(nftnl_expr_foreach, nft_rule_expr_foreach); > >> > >>-struct nftnl_exp

Re: [PATCH 1/4, V3, libnftnl] rule: Implement internal expression iterator

2016-08-10 Thread Carlos Falgueras García
On 08/10/2016 01:41 PM, Pablo Neira Ayuso wrote: On Wed, Aug 10, 2016 at 11:48:54AM +0200, Carlos Falgueras García wrote: Introduce nftnl_expr_iter_init() to allow stack allocated iterators for internal use. Applied with minor changes, see below. Signed-off-by: Carlos Falgueras García ---

Re: [PATCH 1/4, V3, libnftnl] rule: Implement internal expression iterator

2016-08-10 Thread Pablo Neira Ayuso
On Wed, Aug 10, 2016 at 11:48:54AM +0200, Carlos Falgueras García wrote: > Introduce nftnl_expr_iter_init() to allow stack allocated iterators for > internal use. Applied with minor changes, see below. > > Signed-off-by: Carlos Falgueras García > --- > src/rule.c | 30 +++---

[PATCH 1/4, V3, libnftnl] rule: Implement internal expression iterator

2016-08-10 Thread Carlos Falgueras García
Introduce nftnl_expr_iter_init() to allow stack allocated iterators for internal use. Signed-off-by: Carlos Falgueras García --- src/rule.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/rule.c b/src/rule.c index 11fceca..69ffc7e 100644 -