diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-04-06 17:58:18 +0200 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-04-21 14:50:24 +0000 |
commit | 832926bd9666717ff2310f93981f3383e1de5ab6 (patch) | |
tree | 2511115e328a080384473515ee1ec84992eae320 /src/plugins/cnat/cnat_node_feature.c | |
parent | 1fbf034e3ea97d507e41420248c99da7bdc916bf (diff) |
cnat: Fix session flag initialization
Type: fix
Sometimes session->value.flags wasn't initialized
leading to next_node index corruption.
Also added a debug flag to tell session/rsessions appart
Change-Id: I80da50f2267e03a4552e8c9efc8e3aa08bc5569d
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_node_feature.c')
-rw-r--r-- | src/plugins/cnat/cnat_node_feature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat_node_feature.c b/src/plugins/cnat/cnat_node_feature.c index f9b6fa2a40d..aced4cd0a15 100644 --- a/src/plugins/cnat/cnat_node_feature.c +++ b/src/plugins/cnat/cnat_node_feature.c @@ -125,6 +125,7 @@ cnat_input_feature_fn (vlib_main_t *vm, vlib_node_runtime_t *node, session->value.cs_port[VLIB_TX] = clib_host_to_net_u16 (trk0->ct_ep[VLIB_TX].ce_port); session->value.cs_port[VLIB_RX] = udp0->src_port; + session->value.flags = 0; if (trk0->ct_flags & CNAT_TRK_FLAG_NO_NAT) { |