summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat44-ei/nat44_ei.h
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2021-03-24 17:28:13 +0100
committerOle Tr�an <otroan@employees.org>2021-03-25 19:48:40 +0000
commit418bf6aaef6048d15bc1f575a166e8f5e52696be (patch)
tree8140b468245473cbac1f4dd840f728874a0139b6 /src/plugins/nat/nat44-ei/nat44_ei.h
parent933b0ca073a481a976ef64bf8f5ddfe19a346f30 (diff)
nat: allocate enough space for full port usage
Type: fix Change-Id: I068bfeaf22b9e6cce967c27acdd46d4b8541bdf8 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat44-ei/nat44_ei.h')
-rw-r--r--src/plugins/nat/nat44-ei/nat44_ei.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat44-ei/nat44_ei.h b/src/plugins/nat/nat44-ei/nat44_ei.h
index 29c92e96cbd..ae63d9de050 100644
--- a/src/plugins/nat/nat44-ei/nat44_ei.h
+++ b/src/plugins/nat/nat44-ei/nat44_ei.h
@@ -71,7 +71,7 @@ typedef struct
#define _(N, i, n, s) \
u32 busy_##n##_ports; \
u32 *busy_##n##_ports_per_thread; \
- u32 busy_##n##_port_refcounts[65535];
+ u32 busy_##n##_port_refcounts[0xffff + 1];
foreach_nat_protocol
#undef _
} nat44_ei_address_t;