]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - nest/locks.c
Merge remote-tracking branch 'origin/master' into mq-filter-stack
[thirdparty/bird.git] / nest / locks.c
index ad2af4938959d7219958562825fa7ea112e96321..812a65342268b9b97b3f19f1960c8e8b5e07377c 100644 (file)
@@ -45,6 +45,7 @@ olock_same(struct object_lock *x, struct object_lock *y)
   return
     x->type == y->type &&
     x->iface == y->iface &&
+    x->vrf == y->vrf &&
     x->port == y->port &&
     x->inst == y->inst &&
     ipa_equal(x->addr, y->addr);
@@ -100,7 +101,8 @@ static struct resclass olock_class = {
   sizeof(struct object_lock),
   olock_free,
   olock_dump,
-  NULL
+  NULL,
+  NULL,
 };
 
 /**
@@ -189,6 +191,5 @@ olock_init(void)
 {
   DBG("olock: init\n");
   init_list(&olock_list);
-  olock_event = ev_new(&root_pool);
-  olock_event->hook = olock_run_event;
+  olock_event = ev_new_init(&root_pool, olock_run_event, NULL);
 }