diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-03-05 17:16:40 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-03-15 17:36:23 +0000 |
commit | 418abe2a259bc8c04c3b8839099204d56ae504ba (patch) | |
tree | ef5cb4dacc94843b38fe7286e01afa263d5dff4e /src/plugins/cnat/cnat_types.h | |
parent | 592dbd0ad3b464d14aba7ccec918d5ed7f9429fc (diff) |
cnat: maglev fixes
This fixes cnat_feature node LB
- use siblings instead of direct next_nodes
- only do the lookup if we have NO_NAT
- fix behavior in v6
Type: fix
Change-Id: Ie80c9912946bf55c30eadeb51340f4aec9bb297e
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_types.h')
-rw-r--r-- | src/plugins/cnat/cnat_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat_types.h b/src/plugins/cnat/cnat_types.h index 47e34e1f232..c3ec74c345f 100644 --- a/src/plugins/cnat/cnat_types.h +++ b/src/plugins/cnat/cnat_types.h @@ -55,6 +55,15 @@ #define MIN_SRC_PORT ((u16) 0xC000) +typedef enum cnat_trk_flag_t_ +{ + /* Endpoint is active (static or dhcp resolved) */ + CNAT_TRK_ACTIVE = (1 << 0), + /* Don't translate this endpoint, but still + * forward. Used by maglev for DSR */ + CNAT_TRK_FLAG_NO_NAT = (1 << 1), +} cnat_trk_flag_t; + typedef enum { /* Endpoint addr has been resolved */ |