Commit 53b7a298 authored by Martin Mareš's avatar Martin Mareš

Fix several things I broke today.

parent 0e889c52
......@@ -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;
......
......@@ -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);
......
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