diff options
author | Florin Coras <fcoras@cisco.com> | 2022-04-15 12:37:48 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2022-04-18 21:19:24 +0000 |
commit | 8c2bdf86199729e2a7c0564f989690e3e076a19c (patch) | |
tree | 492d808a3ba03eb34822181037b36849eddbdf56 /src/vnet/session/session_types.h | |
parent | 1afa2b62ceb33d2c167cdcf68431070781545aa6 (diff) |
session: add support for listen proxies
Listener proxies are allowed to listen on IPs that are not local.
Configurable only by builtin apps for now.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Idb380ee3584a088878a03d45fd85e7bb0deeb590
Diffstat (limited to 'src/vnet/session/session_types.h')
-rw-r--r-- | src/vnet/session/session_types.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h index 8a8571bc9ee..7cfa6716187 100644 --- a/src/vnet/session/session_types.h +++ b/src/vnet/session/session_types.h @@ -36,6 +36,23 @@ typedef struct _session_endpoint #undef _ } session_endpoint_t; +#define foreach_session_endpoint_cfg_flags _ (PROXY_LISTEN, "proxy listener") + +typedef enum session_endpoint_cfg_flags_bits_ +{ +#define _(sym, str) SESSION_ENDPT_CFG_F_BIT_##sym, + foreach_session_endpoint_cfg_flags +#undef _ +} __clib_packed session_endpoint_cfg_flags_bits_t; + +typedef enum session_endpoint_cfg_flags_ +{ +#define _(sym, str) \ + SESSION_ENDPT_CFG_F_##sym = 1 << SESSION_ENDPT_CFG_F_BIT_##sym, + foreach_session_endpoint_cfg_flags +#undef _ +} __clib_packed session_endpoint_cfg_flags_t; + typedef struct _session_endpoint_cfg { #define _(type, name) type name; @@ -46,7 +63,7 @@ typedef struct _session_endpoint_cfg u32 ns_index; u8 original_tp; u64 parent_handle; - u8 flags; + session_endpoint_cfg_flags_t flags; transport_endpt_ext_cfg_t *ext_cfg; } session_endpoint_cfg_t; |