aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-10-07 12:19:44 +0000
committerDamjan Marion <dmarion@me.com>2020-10-08 06:21:41 +0000
commitadb10ad775ead572456fd29c04c704c4deee4416 (patch)
treefd316843ce6bf56a99ee21843fa5f7f96deced7c /src/plugins/nat
parent970187bd969631da3e81d9bb1691ab88a997f79e (diff)
nat: use proper type for counters
Type: improvement Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I330822c5d675cdfa57ab75ceb0223f11e0ebb7d2
Diffstat (limited to 'src/plugins/nat')
-rw-r--r--src/plugins/nat/nat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 99ac70baf45..123bea57a81 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -279,8 +279,8 @@ typedef struct
u32 fib_index;
/* *INDENT-OFF* */
#define _(N, i, n, s) \
- u16 busy_##n##_ports; \
- u16 * busy_##n##_ports_per_thread; \
+ u32 busy_##n##_ports; \
+ u32 * busy_##n##_ports_per_thread; \
u32 busy_##n##_port_refcounts[65535];
foreach_nat_protocol
#undef _