cnat: Introduce parametric source policy
[vpp.git] / src / plugins / cnat / cnat_node_snat.c
index d6c49cf..c000038 100644 (file)
@@ -16,6 +16,8 @@
 #include <vlibmemory/api.h>
 #include <cnat/cnat_node.h>
 #include <cnat/cnat_snat.h>
+#include <cnat/cnat_inline.h>
+#include <cnat/cnat_src_policy.h>
 
 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