From ce25b60de5536e2f79bb72e929e70ccc1a75e0f8 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Fri, 11 Sep 2020 17:30:06 +0200 Subject: cnat: Introduce parametric source policy Type: feature Change-Id: I60ae9dd1c100b587d1902a20596b99a5c8a95df7 Signed-off-by: Nathan Skrzypczak --- src/plugins/cnat/cnat_node_snat.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/plugins/cnat/cnat_node_snat.c') diff --git a/src/plugins/cnat/cnat_node_snat.c b/src/plugins/cnat/cnat_node_snat.c index d6c49cf9174..c0000385ffb 100644 --- a/src/plugins/cnat/cnat_node_snat.c +++ b/src/plugins/cnat/cnat_node_snat.c @@ -16,6 +16,8 @@ #include #include #include +#include +#include typedef enum cnat_snat_next_ { @@ -227,16 +229,20 @@ VLIB_REGISTER_NODE (cnat_snat_ip6_node) = [CNAT_SNAT_NEXT_DROP] = "ip6-drop", } }; -/* *INDENT-ON* */ - VNET_FEATURE_INIT (cnat_snat_ip4_node, static) = { -.arc_name = "ip4-unicast",.node_name = "ip4-cnat-snat",}; + .arc_name = "ip4-unicast", + .node_name = "ip4-cnat-snat", +}; VNET_FEATURE_INIT (cnat_snat_ip6_node, static) = { -.arc_name = "ip6-unicast",.node_name = "ip6-cnat-snat",}; + .arc_name = "ip6-unicast", + .node_name = "ip6-cnat-snat", +}; + +/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON -- cgit 1.2.3-korg