[PATCH 1/2] libnftnl: rule: Change the "userdata" attribute to use new TLV buffer.

2016-02-20 Thread Carlos Falgueras García
Now is it possible to store multiple variable length user data into a rule. Signed-off-by: Carlos Falgueras García --- src/rule.c | 158 ++--- 1 file changed, 130 insertions(+), 28 deletions(-) diff --git a/src/rule.c

[PATCH 2/2] nftables: rule: Change the field "rule->comment" for an nftnl_attrbuf.

2016-02-20 Thread Carlos Falgueras García
Now it is possible to store multiple variable length user data into rule. Modify the parser in order to fill the nftnl_attrbuf with the comment, and the print function for extract these commentary and print it to user. Signed-off-by: Carlos Falgueras García ---