Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: use proper type for counters
[vpp.git]
/
src
/
plugins
/
nat
/
nat.h
diff --git
a/src/plugins/nat/nat.h
b/src/plugins/nat/nat.h
index
99ac70b
..
123bea5
100644
(file)
--- 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) \
u32 fib_index;
/* *INDENT-OFF* */
#define _(N, i, n, s) \
- u
16
busy_##n##_ports; \
- u
16
* busy_##n##_ports_per_thread; \
+ u
32
busy_##n##_ports; \
+ u
32
* busy_##n##_ports_per_thread; \
u32 busy_##n##_port_refcounts[65535];
foreach_nat_protocol
#undef _
u32 busy_##n##_port_refcounts[65535];
foreach_nat_protocol
#undef _