From: Phil Sutter Date: Fri, 26 Jul 2024 18:43:20 +0000 (+0200) Subject: ebtables: Omit all-wildcard interface specs from output X-Git-Tag: v1.8.11~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e942c8086ad1f92b8fc3547b7b5570a4a17ef1a8;p=thirdparty%2Fiptables.git 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 --- 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); }