NAT64: change not supported multi threading behaviour
[vpp.git] / src / plugins / snat / snat.c
index 8aa9a83..df0a5a0 100644 (file)
@@ -22,6 +22,7 @@
 #include <snat/snat.h>
 #include <snat/snat_ipfix_logging.h>
 #include <snat/snat_det.h>
+#include <snat/nat64.h>
 #include <vnet/fib/fib_table.h>
 #include <vnet/fib/ip4_fib.h>
 
@@ -771,6 +772,8 @@ static clib_error_t * snat_init (vlib_main_t * vm)
     }
 
   error = snat_api_init(vm, sm);
+  if (error)
+    return error;
 
   /* Set up the interface address add/del callback */
   cb4.function = snat_ip4_add_del_interface_address_cb;
@@ -781,6 +784,8 @@ static clib_error_t * snat_init (vlib_main_t * vm)
   /* Init IPFIX logging */
   snat_ipfix_logging_init(vm);
 
+  error = nat64_init(vm);
+
   return error;
 }