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 correct data types for memory sizes
[vpp.git]
/
src
/
plugins
/
nat
/
nat64.h
diff --git
a/src/plugins/nat/nat64.h
b/src/plugins/nat/nat64.h
index
a95ded2
..
f133344
100644
(file)
--- a/
src/plugins/nat/nat64.h
+++ b/
src/plugins/nat/nat64.h
@@
-91,9
+91,9
@@
typedef struct
/** config parameters */
u32 bib_buckets;
/** config parameters */
u32 bib_buckets;
- u
32
bib_memory_size;
+ u
word
bib_memory_size;
u32 st_buckets;
u32 st_buckets;
- u
32
st_memory_size;
+ u
word
st_memory_size;
/** values of various timeouts */
u32 udp_timeout;
/** values of various timeouts */
u32 udp_timeout;
@@
-359,8
+359,8
@@
void nat64_extract_ip4 (ip6_address_t * ip6, ip4_address_t * ip4,
* @param st_buckets Number of session table hash buckets.
* @param st_memory_size Memory size of session table hash.
*/
* @param st_buckets Number of session table hash buckets.
* @param st_memory_size Memory size of session table hash.
*/
-void nat64_set_hash (u32 bib_buckets, u
32
bib_memory_size, u32 st_buckets,
- u
32
st_memory_size);
+void nat64_set_hash (u32 bib_buckets, u
word
bib_memory_size, u32 st_buckets,
+ u
word
st_memory_size);
/**
* @brief Get worker thread index for NAT64 in2out.
/**
* @brief Get worker thread index for NAT64 in2out.