Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
cnat: coverity fix
[vpp.git]
/
src
/
plugins
/
cnat
/
cnat_translation.h
diff --git
a/src/plugins/cnat/cnat_translation.h
b/src/plugins/cnat/cnat_translation.h
index
a4ae1ec
..
7a03581
100644
(file)
--- a/
src/plugins/cnat/cnat_translation.h
+++ b/
src/plugins/cnat/cnat_translation.h
@@
-222,7
+222,7
@@
cnat_find_translation (index_t cti, u16 port, ip_protocol_t proto)
u64 key;
int rv;
- key = (proto << 24) | port;
+ key = (
(u64)
proto << 24) | port;
key = key << 32 | (u32) cti;
bkey.key = key;