]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables-translate: Use shared ebt_get_current_chain() function
authorPhil Sutter <phil@nwl.cc>
Sat, 20 Jun 2020 08:11:52 +0000 (10:11 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 17 May 2021 13:07:13 +0000 (15:07 +0200)
commiteea68ca828b6a757490d91fc87dcac2f15647f40
tree4492125a3f7dc52860853c6c1fe497676367857d
parent9dc50b5b8e4416219c700331c6e301d840f6e55d
ebtables-translate: Use shared ebt_get_current_chain() function

Drop the local reimplementation. It was barely different enough to
be buggy:

| % ebtables-nft -A foo -o eth0 -j ACCEPT
| % xtables-nft-multi ebtables-translate -A foo -o eth0 -j ACCEPT
| ebtables-translate v1.8.5 (nf_tables): Use -o only in OUTPUT, FORWARD and POSTROUTING chains
| Try `ebtables-translate -h' or 'ebtables-translate --help' for more information.

With this change, output is as expected:

| % xtables-nft-multi ebtables-translate -A foo -o eth0 -j ACCEPT
| nft add rule bridge filter foo oifname "eth0" counter accept

This is roughly the same issue fixed in commit e1ccd979e6849 ("ebtables:
fix over-eager -o checks on custom chains").

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xtables-eb-translate.c