diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-21 22:58:47 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-23 17:59:42 +0100 |
commit | 74253799f0ca0735256327e834b7dffedde96ebf (patch) | |
tree | 635de8be15506328efa5e327421fb48a07631bec /iptables | |
parent | 466c4031680eb5ea81d9313f91efb06aaa63a4a9 (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables')
-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 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); |