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_src_policy.c
diff --git
a/src/plugins/cnat/cnat_src_policy.c
b/src/plugins/cnat/cnat_src_policy.c
index
cac24b7
..
8f3f337
100644
(file)
--- a/
src/plugins/cnat/cnat_src_policy.c
+++ b/
src/plugins/cnat/cnat_src_policy.c
@@
-59,8
+59,8
@@
cnat_vip_default_source_policy (vlib_main_t * vm,
u16 sport;
sport = udp0->src_port;
/* Allocate a port only if asked and if we actually sNATed */
u16 sport;
sport = udp0->src_port;
/* Allocate a port only if asked and if we actually sNATed */
- if ((ct->flags & CNAT_TR
ANSLATION_FLAG_ALLOCATE_PORT)
-
&&
(*rsession_flags & CNAT_SESSION_FLAG_HAS_SNAT))
+ if ((ct->flags & CNAT_TR
_FLAG_ALLOCATE_PORT) &&
+ (*rsession_flags & CNAT_SESSION_FLAG_HAS_SNAT))
{
sport = 0; /* force allocation */
session->value.flags |= CNAT_SESSION_FLAG_ALLOC_PORT;
{
sport = 0; /* force allocation */
session->value.flags |= CNAT_SESSION_FLAG_ALLOC_PORT;