Fix several things I broke today.

This commit is contained in:
Martin Mares 1999-03-03 20:55:35 +00:00
parent 0e889c5254
commit 53b7a2982a
2 changed files with 3 additions and 2 deletions

View file

@ -321,6 +321,7 @@ proto_notify_state(struct proto *p, unsigned ps)
DBG("%s: Scheduling meal\n", p->name); DBG("%s: Scheduling meal\n", p->name);
if (p->proto->priority) /* FIXME: Terrible hack to get synchronous device/kernel startup! */ if (p->proto->priority) /* FIXME: Terrible hack to get synchronous device/kernel startup! */
{ {
p->proto_state = ps;
p->core_state = FS_FEEDING; p->core_state = FS_FEEDING;
proto_feed(p); proto_feed(p);
return; return;

View file

@ -41,7 +41,7 @@ krt_flush_routes(struct krt_proto *p)
{ {
rta *a = e->attrs; rta *a = e->attrs;
if (a->source != RTS_DEVICE && a->source != RTS_INHERIT) 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; FIB_WALK_END;
@ -221,7 +221,7 @@ krt_start(struct proto *P)
{ {
struct krt_proto *p = (struct krt_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_if_start(p);
krt_scan_start(p); krt_scan_start(p);