diff options
author | Phil Sutter <phil@nwl.cc> | 2024-07-26 20:43:20 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-07-31 23:13:55 +0200 |
commit | e942c8086ad1f92b8fc3547b7b5570a4a17ef1a8 (patch) | |
tree | 099c6c952e41631bbaf30147eebf27726684cee0 | |
parent | baccf16efb0472dac65c0e4245ff43a49dc92431 (diff) |
ebtables: Omit all-wildcard interface specs from output
Regular code path doesn't hit this because the conversion to
libnftnl_rule takes care of it already. Future changes though will cause
iptables_command_state objects to be printed directly, making this
relevant.
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | iptables/nft-bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index f4a3c69a..0f85e218 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -212,7 +212,7 @@ static bool nft_rule_to_ebtables_command_state(struct nft_handle *h, static void print_iface(const char *option, const char *name, bool invert) { - if (*name) + if (*name && (strcmp(name, "+") || invert)) printf("%s%s %s ", invert ? "! " : "", option, name); } |