From adb10ad775ead572456fd29c04c704c4deee4416 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Wed, 7 Oct 2020 12:19:44 +0000 Subject: nat: use proper type for counters Type: improvement Signed-off-by: Klement Sekera Change-Id: I330822c5d675cdfa57ab75ceb0223f11e0ebb7d2 --- src/plugins/nat/nat.h | 4 ++-- 1 file 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 _ -- cgit 1.2.3-korg