]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Avoid dropping policy when flushing
authorPhil Sutter <phil@nwl.cc>
Wed, 15 Sep 2021 15:37:51 +0000 (17:37 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 15 Sep 2021 16:12:58 +0000 (18:12 +0200)
commit63ab4fe3a1919b668953542841f4397544c4bb15
tree70dd90d85c4ed278078a808f58cc75182a5fe59f
parentb714d45dc4c2423d4df4cbf7ccf238ec441675ef
ebtables: Avoid dropping policy when flushing

Unlike nftables, ebtables' user-defined chains have policies -
ebtables-nft implements those internally as invisible last rule. In
order to recreate them after a flush command, a rule cache is needed.

https://bugzilla.netfilter.org/show_bug.cgi?id=1558
iptables/nft-cmd.c
iptables/tests/shell/testcases/ebtables/0007-chain-policies_0 [new file with mode: 0755]