mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 20:28:43 +00:00
Fix several things I broke today.
This commit is contained in:
parent
0e889c5254
commit
53b7a2982a
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user