From 5b88feeb7f81905df0cffc5d7cb372c98cfa949e Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Wed, 17 Aug 2022 12:08:31 -0500 Subject: nat: simplify per-protocol code by using an array rather than using obfuscated macro hacery, simplify the per-protocol data management by directly using an array of NAT protocol types. Type: refactor Signed-off-by: Jon Loeliger Change-Id: I6fe987556ac9f402f8d490da0740e2b91440304c --- src/plugins/nat/nat44-ei/nat44_ei_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/nat/nat44-ei/nat44_ei_cli.c') diff --git a/src/plugins/nat/nat44-ei/nat44_ei_cli.c b/src/plugins/nat/nat44-ei/nat44_ei_cli.c index 2fe01b07c9e..75c95179b40 100644 --- a/src/plugins/nat/nat44-ei/nat44_ei_cli.c +++ b/src/plugins/nat/nat44-ei/nat44_ei_cli.c @@ -841,7 +841,7 @@ nat44_ei_show_addresses_command_fn (vlib_main_t *vm, unformat_input_t *input, else vlib_cli_output (vm, " tenant VRF independent"); #define _(N, i, n, s) \ - vlib_cli_output (vm, " %d busy %s ports", ap->busy_##n##_ports, s); + vlib_cli_output (vm, " %d busy %s ports", ap->busy_ports[i], s); foreach_nat_protocol #undef _ } -- cgit 1.2.3-korg