]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix several things I broke today.
authorMartin Mares <mj@ucw.cz>
Wed, 3 Mar 1999 20:55:35 +0000 (20:55 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 3 Mar 1999 20:55:35 +0000 (20:55 +0000)
nest/proto.c
sysdep/unix/krt.c

index cbafeb391e0617b5ea2fda72d78f4effec23b248..99a4e85cdd6af173926943186fa0c9ee643fbf25 100644 (file)
@@ -321,6 +321,7 @@ proto_notify_state(struct proto *p, unsigned ps)
       DBG("%s: Scheduling meal\n", p->name);
       if (p->proto->priority)          /* FIXME: Terrible hack to get synchronous device/kernel startup! */
        {
+         p->proto_state = ps;
          p->core_state = FS_FEEDING;
          proto_feed(p);
          return;
index d44a57d8bac3e15075243257f3ffda3f41a1ff62..5fbd52c723c3e43f0dde50d3dfaeefd29c0dc988 100644 (file)
@@ -41,7 +41,7 @@ krt_flush_routes(struct krt_proto *p)
        {
          rta *a = e->attrs;
          if (a->source != RTS_DEVICE && a->source != RTS_INHERIT)
-           krt_set_notify(&p->p, e->net, e, NULL);
+           krt_set_notify(&p->p, e->net, NULL, e);
        }
     }
   FIB_WALK_END;
@@ -221,7 +221,7 @@ krt_start(struct proto *P)
 {
   struct krt_proto *p = (struct krt_proto *) P;
 
-  p->accum_time = 0;
+  p->accum_time = KRT_CF->route_scan_time - KRT_CF->scan_time;
 
   krt_if_start(p);
   krt_scan_start(p);