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_session.h | |
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_session.h')
-rw-r--r-- | src/plugins/cnat/cnat_session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat_session.h b/src/plugins/cnat/cnat_session.h index 51764504bca..072bb10f96f 100644 --- a/src/plugins/cnat/cnat_session.h +++ b/src/plugins/cnat/cnat_session.h @@ -123,7 +123,12 @@ typedef enum cnat_session_flag_t_ */ CNAT_SESSION_FLAG_NO_CLIENT = (1 << 2), + /* Do not actually translate the packet but still forward it + * Used for Maglev, with an encap */ CNAT_SESSION_FLAG_NO_NAT = (1 << 3), + + /* Debug flag marking return sessions */ + CNAT_SESSION_IS_RETURN = (1 << 4), } cnat_session_flag_t; typedef enum cnat_session_location_t_ |