aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat_format.c
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-11-06 23:17:31 -0800
committerDamjan Marion <dmarion@me.com>2018-11-07 11:59:29 +0000
commitc3df1e9a0ab79c1fe254394748ef441ffe224c43 (patch)
treec896669ee889ce05a96ebdda445a9d8de6765203 /src/plugins/nat/nat_format.c
parent7baf63f041a3bacb57fa847a09c286ad4a4d7655 (diff)
NAT44: fix undesired dependency between static mapping and address from the pool (VPP-1485)
Change-Id: Iaa404361eac2a6612dcdaba3f73bae41a35c5446 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat_format.c')
-rw-r--r--src/plugins/nat/nat_format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/nat/nat_format.c b/src/plugins/nat/nat_format.c
index 5ce00dcb1d0..8e5ac4cade4 100644
--- a/src/plugins/nat/nat_format.c
+++ b/src/plugins/nat/nat_format.c
@@ -226,7 +226,8 @@ format_snat_static_mapping (u8 * s, va_list * args)
s = format (s, "identity mapping %U",
format_ip4_address, &m->local_addr);
else
- s = format (s, "identity mapping %U:%d",
+ s = format (s, "identity mapping %U %U:%d",
+ format_snat_protocol, m->proto,
format_ip4_address, &m->local_addr, m->local_port);
/* *INDENT-OFF* */