This series of patches came together after I noticed xlate-test.py and started using it. Most notably, this fixes ebtables-translate (which I broke badly by accident in previous patches) but also improves ebtables-save and -restore. Finally, there are a few fixes for translations. With this series applied, all xlate tests pass on my testing VM. Phil Sutter (10): extensions: AUDIT: Provide translation xlate-test: Fix for calling wrong command name ebtables: trivial: Leverage C99-style initializers a bit more ebtables-translate: Fix segfault while parsing extension options xtables: Add a few missing exit calls extensions: libebt_mark: Drop mark_supplied check ebtables: Review match/target lookup once more xtables: Add missing deinitialization ebtables-translate: Fix for libebt_limit.txlate ip6tables-translate: Fix libip6t_mh.txlate test extensions/libebt_mark.c | 7 -- extensions/libip6t_mh.txlate | 4 +- extensions/libxt_AUDIT.c | 11 +++ extensions/libxt_AUDIT.txlate | 8 ++ extensions/libxt_limit.c | 10 +- iptables/nft-arp.c | 2 +- iptables/nft-bridge.c | 36 ++----- iptables/nft-bridge.h | 2 + iptables/nft-shared.c | 2 + iptables/nft.c | 8 +- iptables/xtables-eb-translate.c | 140 ++------------------------- iptables/xtables-eb.c | 165 +++++++++++++++++--------------- iptables/xtables-save.c | 10 +- xlate-test.py | 2 +- 14 files changed, 151 insertions(+), 256 deletions(-) create mode 100644 extensions/libxt_AUDIT.txlate -- 2.18.0