aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat_api.c
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-06-13 05:39:07 -0700
committerOle Trøan <otroan@employees.org>2018-06-15 06:53:24 +0000
commita6110b6ea5a066b64005347850f61df9a2000fe9 (patch)
treee8c836dadfe7238592ef5baaabc9cf520c5e813f /src/plugins/nat/nat_api.c
parente43832c7e77b8b008ab452386b143bb3f7f5be40 (diff)
NAT44: endpoint dependent mode (VPP-1273)
To enable NAT plugin endpoint dependent mode add following to statrup config: nat { endpoint-dependent } Enable endpoint dependent filtering and mapping for all sessions. Move some existing functionality such as service load balancing, twice nat, out2in-only static mappings and unknown protocol dynamic translations, which use endpoint dependent lookup hash tables before. Basically split to vanilla NAT44 and extra features NAT44. Change-Id: I3925eb5ddcc8f1ec4cf6af4e2a618a7ec7aa9735 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat_api.c')
-rw-r--r--src/plugins/nat/nat_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat_api.c b/src/plugins/nat/nat_api.c
index f5f41619b33..6d4d0d912e6 100644
--- a/src/plugins/nat/nat_api.c
+++ b/src/plugins/nat/nat_api.c
@@ -454,7 +454,7 @@ static void
for (i = 0; i < count; i++)
{
if (mp->is_add)
- snat_add_address (sm, &this_addr, vrf_id, mp->twice_nat);
+ rv = snat_add_address (sm, &this_addr, vrf_id, mp->twice_nat);
else
rv = snat_del_address (sm, this_addr, 0, mp->twice_nat);