]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables: xtables-eb: fix renaming of chains
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Mon, 24 Nov 2014 18:43:05 +0000 (19:43 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 25 Nov 2014 19:05:08 +0000 (20:05 +0100)
commit84b69ea462eb2159ce6bde83d6bcf2eac0098f87
tree536db42d98c55106082250d560357e5afe497f40
parent4a48ec94c233a125a371eced5dc161df557576d9
iptables: xtables-eb: fix renaming of chains

Renaming of chains is not working. and ebtables-compat gets:
 libnftnl: attribute 0 assertion failed in chain.c:159

This patch brings back the parser code of the original ebtables tool:
 http://git.netfilter.org/ebtables.old-history/tree/userspace/ebtables2/ebtables.c#n652

I adapted the original parser code to fit in the new environment. Also tried to
keep original error messages as much as possible.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/xtables-eb.c