Commit d1fae1ff authored by Anjan Chanda's avatar Anjan Chanda
Browse files

use random id to subscribe for 1905 events

parent e16e8e18
Pipeline #42060 passed with stages
in 1 minute and 30 seconds
......@@ -8,6 +8,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
......@@ -366,14 +367,6 @@ static int topology_subscribe(struct topologyd_private *priv, uint32_t oid)
return 0;
}
typedef uint32_t mapmodule_object_t;
struct map_module_unish {
mapmodule_object_t id;
uint32_t cmdu_mask;
char process_cmdu_funcname[64];
};
static void register_cb(struct ubus_request *req, int type, struct blob_attr *msg)
{
struct topologyd_private *priv = (struct topologyd_private *)req->priv;
......@@ -400,11 +393,11 @@ void topology_subscribe_for_cmdus(struct topologyd_private *p)
uint32_t map_id;
struct blob_buf bb = {};
struct map_module m = {
.id = 0x11111111,
.process_cmdu_funcname = "mapclient_process_cmdu",
};
dbg("Inside %s\n", __func__);
m.id = rand();
map_prepare_cmdu_mask(m.cmdu_mask,
CMDU_TYPE_TOPOLOGY_QUERY,
CMDU_TYPE_HIGHER_LAYER_QUERY,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment