diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-07 19:12:14 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-07 23:24:12 +0100 |
commit | c1083acea70787eea3f7929fd04718434bb05ba8 (patch) | |
tree | 558d8e814016e6ee5eafcbdee1f27d5476079d0b /iptables/xtables-eb.c | |
parent | 3493d40cbba9dbfc00018b419241c93646a97a68 (diff) |
ebtables: Fix corner-case noflush restore bug
Report came from firwalld, but this is actually rather hard to trigger.
Since a regular chain line prevents it, typical dump/restore use-cases
are unaffected.
Fixes: 73611d5582e72 ("ebtables-nft: add broute table emulation")
Cc: Eric Garver <eric@garver.life>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r-- | iptables/xtables-eb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 08eec79d..a8ad57c7 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -169,6 +169,8 @@ int ebt_get_current_chain(const char *chain) return NF_BR_LOCAL_OUT; else if (strcmp(chain, "POSTROUTING") == 0) return NF_BR_POST_ROUTING; + else if (strcmp(chain, "BROUTING") == 0) + return NF_BR_BROUTING; /* placeholder for user defined chain */ return NF_BR_NUMHOOKS; |