Add special Twice-NAT feature (VPP-1221) 71/11671/4
authorJuraj Sloboda <jsloboda@cisco.com>
Tue, 10 Apr 2018 11:51:54 +0000 (13:51 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 19 Apr 2018 10:35:13 +0000 (10:35 +0000)
commit1e5c07d379a092f4829e7081aa962d013b31fdfc
tree1b1a3c386663b3356773cf374b55a64f14d43709
parentb14826e459302556febb391456ea90644278645a
Add special Twice-NAT feature (VPP-1221)

When enabled then Twice-NAT is applied only when
source IP equals destination IP after DNAT

Change-Id: I58a9d1d222b2a10c83eafffb2107f32c1b4aa3a8
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
src/plugins/nat/in2out.c
src/plugins/nat/nat.api
src/plugins/nat/nat.c
src/plugins/nat/nat.h
src/plugins/nat/nat44_cli.c
src/plugins/nat/nat_api.c
src/plugins/nat/out2in.c
test/test_nat.py
test/vpp_papi_provider.py