aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat.h
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2017-09-12 04:15:30 -0700
committerOle Trøan <otroan@employees.org>2017-09-12 13:24:27 +0000
commit624b8d9807ac449c4077df4d2d4f40313597a224 (patch)
tree0a228133f3e1c89538e9030a420fcfc4e0db4506 /src/plugins/nat/nat.h
parent4eeeaaf5e822718eb222e6c49abd82e1bcb566fd (diff)
NAT: fixed bug in snat_alloc_outside_address_and_port (VPP-981)
Change-Id: I6c5eccd4193c44604da3fd27c108defe71b38a4b Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.h')
-rw-r--r--src/plugins/nat/nat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 8935144dd54..d1ba5d55b73 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -182,7 +182,8 @@ typedef struct {
ip4_address_t addr;
u32 fib_index;
#define _(N, i, n, s) \
- u32 busy_##n##_ports; \
+ u16 busy_##n##_ports; \
+ u16 * busy_##n##_ports_per_thread; \
uword * busy_##n##_port_bitmap;
foreach_snat_protocol
#undef _
@@ -389,6 +390,7 @@ extern vlib_node_registration_t snat_hairpin_dst_node;
extern vlib_node_registration_t snat_hairpin_src_node;
void snat_free_outside_address_and_port (snat_main_t * sm,
+ u32 thread_index,
snat_session_key_t * k,
u32 address_index);