diff options
author | Phil Sutter <phil@nwl.cc> | 2020-06-20 10:11:52 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-05-17 15:07:13 +0200 |
commit | eea68ca828b6a757490d91fc87dcac2f15647f40 (patch) | |
tree | 4492125a3f7dc52860853c6c1fe497676367857d /iptables/xtables-eb-standalone.c | |
parent | 9dc50b5b8e4416219c700331c6e301d840f6e55d (diff) |
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>
Diffstat (limited to 'iptables/xtables-eb-standalone.c')
0 files changed, 0 insertions, 0 deletions