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: flag to disable rsession
[vpp.git]
/
src
/
plugins
/
cnat
/
cnat_types.h
diff --git
a/src/plugins/cnat/cnat_types.h
b/src/plugins/cnat/cnat_types.h
index
bf2726f
..
84fb7d0
100644
(file)
--- a/
src/plugins/cnat/cnat_types.h
+++ b/
src/plugins/cnat/cnat_types.h
@@
-50,8
+50,10
@@
* from fib_source.h */
#define CNAT_FIB_SOURCE_PRIORITY 0x02
* from fib_source.h */
#define CNAT_FIB_SOURCE_PRIORITY 0x02
-/* Initial refcnt for timestamps (2 : session & rsession) */
-#define CNAT_TIMESTAMP_INIT_REFCNT 2
+/* Initial number of timestamps for a session
+ * this will be incremented when adding the reverse
+ * session in cnat_rsession_create */
+#define CNAT_TIMESTAMP_INIT_REFCNT 1
#define MIN_SRC_PORT ((u16) 0xC000)
#define MIN_SRC_PORT ((u16) 0xC000)