From 624b8d9807ac449c4077df4d2d4f40313597a224 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Tue, 12 Sep 2017 04:15:30 -0700 Subject: NAT: fixed bug in snat_alloc_outside_address_and_port (VPP-981) Change-Id: I6c5eccd4193c44604da3fd27c108defe71b38a4b Signed-off-by: Matus Fabian --- src/plugins/nat/nat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/nat/nat.h') 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); -- cgit 1.2.3-korg