aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cnat/cnat_snat_policy.h
diff options
context:
space:
mode:
authorHediBouattour <hedibouattour2010@gmail.com>2023-08-16 13:26:22 +0200
committerDave Wallace <dwallacelf@gmail.com>2023-08-18 02:42:33 +0000
commitf6beee077ef3e79a32043dd4685e87d7a6d16a5b (patch)
tree5946ee7fe74a0b51e405e23e35ae47f87024dda2 /src/plugins/cnat/cnat_snat_policy.h
parentc5fa5391ed04ec1d18129792dc38524f81a7b6e1 (diff)
cnat: add host tag to bitmap in cnat snat
Type: feature this patch adds a new tag "host" to interfaces for cnat-snat if an interface is tagged pod and host we do not snat traffic outgoing through it Change-Id: I71f5bfcb85581bb8508ba547374f0603f1079ac6 Signed-off-by: hedi bouattour <hedibouattour2010@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_snat_policy.h')
-rw-r--r--src/plugins/cnat/cnat_snat_policy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cnat/cnat_snat_policy.h b/src/plugins/cnat/cnat_snat_policy.h
index 987ae494e16..61c2382602f 100644
--- a/src/plugins/cnat/cnat_snat_policy.h
+++ b/src/plugins/cnat/cnat_snat_policy.h
@@ -45,6 +45,9 @@ typedef enum cnat_snat_interface_map_type_t_
CNAT_SNAT_IF_MAP_INCLUDE_V4 = AF_IP4,
CNAT_SNAT_IF_MAP_INCLUDE_V6 = AF_IP6,
CNAT_SNAT_IF_MAP_INCLUDE_POD,
+ /* CNAT_SNAT_IF_MAP_INCLUDE_HOST is used for interfaces used for punt,
+ replicating uplink */
+ CNAT_SNAT_IF_MAP_INCLUDE_HOST,
CNAT_N_SNAT_IF_MAP,
} cnat_snat_interface_map_type_t;