]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added a hack forcing protocols with priority>0 to be started up
authorMartin Mares <mj@ucw.cz>
Wed, 3 Mar 1999 20:40:51 +0000 (20:40 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 3 Mar 1999 20:40:51 +0000 (20:40 +0000)
immediately. Grrr, need to find a real solution some day.

nest/proto.c

index 76120fa869ea8fae375cbe2b39f4acea95bf3ae4..cbafeb391e0617b5ea2fda72d78f4effec23b248 100644 (file)
@@ -319,6 +319,12 @@ proto_notify_state(struct proto *p, unsigned ps)
       ASSERT(ops == PS_DOWN || ops == PS_START);
       ASSERT(cs == FS_HUNGRY);
       DBG("%s: Scheduling meal\n", p->name);
+      if (p->proto->priority)          /* FIXME: Terrible hack to get synchronous device/kernel startup! */
+       {
+         p->core_state = FS_FEEDING;
+         proto_feed(p);
+         return;
+       }
       cs = FS_FEEDING;
       p->attn->hook = proto_feed;
       ev_schedule(p->attn);