diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-10-07 21:28:23 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-10-08 11:46:23 +0000 |
commit | e2f4e2f175beb6d6490d275049199db7dd61c783 (patch) | |
tree | 3b8a5997a835d15aec3b58af5e9bfc7195d12f7c /src/plugins/nat/nat44_cli.c | |
parent | 2fd4b56aea5833a4752525d58cac335909190e9c (diff) |
NAT44: do not create session record for identity mapping (VPP-1439)
Change-Id: I39a3146a4e4ba8eadf50af7113b9ae6b1c1d688f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat44_cli.c')
-rw-r--r-- | src/plugins/nat/nat44_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/nat44_cli.c b/src/plugins/nat/nat44_cli.c index bebc6a0b2dc..0a3379acb32 100644 --- a/src/plugins/nat/nat44_cli.c +++ b/src/plugins/nat/nat44_cli.c @@ -718,7 +718,7 @@ add_static_mapping_command_fn (vlib_main_t * vm, rv = snat_add_static_mapping (l_addr, e_addr, (u16) l_port, (u16) e_port, vrf_id, addr_only, sw_if_index, proto, is_add, - twice_nat, out2in_only, 0); + twice_nat, out2in_only, 0, 0); switch (rv) { @@ -802,7 +802,7 @@ add_identity_mapping_command_fn (vlib_main_t * vm, rv = snat_add_static_mapping (addr, addr, (u16) port, (u16) port, vrf_id, addr_only, sw_if_index, proto, is_add, - 0, 0, 0); + 0, 0, 0, 1); switch (rv) { |