api: multiple connections per process
[vpp.git] / src / vnet / vxlan-gbp / vxlan_gbp_api.c
index 08e2a7c..17a1984 100644 (file)
@@ -229,7 +229,7 @@ setup_message_id_table (api_main_t * am)
 static clib_error_t *
 vxlan_gbp_api_hookup (vlib_main_t * vm)
 {
-  api_main_t *am = &api_main;
+  api_main_t *am = vlibapi_get_main ();
 
 #define _(N,n)                                                  \
     vl_msg_api_set_handlers(VL_API_##N, #n,                     \