diff options
author | 2018-01-30 03:04:17 -0800 | |
---|---|---|
committer | 2018-02-27 06:09:20 +0000 | |
commit | 4f4964fab4a91a85b25c6e5c3fffeb304c6b93f5 (patch) | |
tree | 32ddc21e5d46cbd2cd916d54aac689165e50ba54 /src/plugins/nat/nat.c | |
parent | e57f4480fbb54f6c1535b134d5270637bbe21201 (diff) |
NAT44: in2out output feature skip translation for already translated packets (VPP-1156)
Change-Id: I5395245c9e49f741a949ada1f725c34f9379c249
Signed-off-by: Matus Fabian <matfabia@cisco.com>
(cherry picked from commit f7ad5cbe819533523169e8a88876b94b9f38789c)
Diffstat (limited to 'src/plugins/nat/nat.c')
-rw-r--r-- | src/plugins/nat/nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c index 5e24ff12918..7e69a684819 100644 --- a/src/plugins/nat/nat.c +++ b/src/plugins/nat/nat.c @@ -753,7 +753,7 @@ int snat_add_static_mapping(ip4_address_t l_addr, ip4_address_t e_addr, } } /* External address must be allocated */ - if (!a) + if (!a && (l_addr.as_u32 != e_addr.as_u32)) return VNET_API_ERROR_NO_SUCH_ENTRY; } |