nat: allocate enough space for full port usage
[vpp.git] / src / plugins / nat / nat44-ei / nat44_ei.h
index 29c92e9..ae63d9d 100644 (file)
@@ -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;