summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_ia32/aesni.h
diff options
context:
space:
mode:
authorAlexander Chernavin <achernavin@netgate.com>2019-04-17 04:38:04 -0400
committerOle Trøan <otroan@employees.org>2019-04-26 11:19:07 +0000
commit6825bc11287fd48b9ff2a4236446db5426b78c93 (patch)
tree976c1c9391b904a1febf39d952bc0102d871d0b4 /src/plugins/crypto_ia32/aesni.h
parentb095a3cd221a142f7d2b4897b812b2781de05d29 (diff)
nat: prevent creation when-resolved static mappings on errors
When you create two identical NAT44 static mappings using interface name as external address and only local or ext port is different, VALUE_EXIST will be raised but when-resolved static mapping will remain. vpp# nat44 add static mapping tcp local 10.128.0.129 443 external GigabitEthernet0/8/0 8443 vpp# nat44 add static mapping tcp local 10.128.0.129 80 external GigabitEthernet0/8/0 8443 nat44 add static mapping: Mapping already exist. vpp# show nat44 static mappings NAT44 static mappings: tcp local 10.128.0.129:443 external 2.2.2.2:8443 vrf 0 tcp local 10.128.0.129:443 external GigabitEthernet0/8/0:8443 vrf -1 tcp local 10.128.0.129:80 external GigabitEthernet0/8/0:8443 vrf -1 With this commit, when-resolved static mapping is not created if the translation only differs in local or ext port. Change-Id: Ifc960b9dc1371caa2a8d3206a80a0ffd10d293e4 Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Diffstat (limited to 'src/plugins/crypto_ia32/aesni.h')
0 files changed, 0 insertions, 0 deletions