From: Phil Sutter Date: Tue, 21 Nov 2023 21:58:47 +0000 (+0100) Subject: ebtables: Align line number formatting with legacy X-Git-Tag: v1.8.11~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74253799f0ca0735256327e834b7dffedde96ebf;p=thirdparty%2Fiptables.git ebtables: Align line number formatting with legacy Legacy ebtables appends a dot to the number printed in first column if --Ln flag was given. Fixes: da871de2a6efb ("nft: bootstrap ebtables-compat") Signed-off-by: Phil Sutter --- diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index 772525e1..1fcdeaf2 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -354,7 +354,7 @@ static void nft_bridge_print_rule(struct nft_handle *h, struct nftnl_rule *r, struct iptables_command_state cs = {}; if (format & FMT_LINENUMBERS) - printf("%d ", num); + printf("%d. ", num); nft_rule_to_ebtables_command_state(h, r, &cs); __nft_bridge_save_rule(&cs, format);