mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-11 17:08:46 +00:00
Kernel: Before first scan, reject exported routes immediately in preexport
This commit is contained in:
parent
3b31138854
commit
6c4be8d1d3
@ -726,6 +726,10 @@ krt_preexport(struct channel *C, rte *e)
|
|||||||
if (!krt_capable(e))
|
if (!krt_capable(e))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
/* Before first scan we don't touch the routes */
|
||||||
|
if (!SKIP_BACK(struct krt_proto, p, C->proto)->ready)
|
||||||
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -747,8 +751,7 @@ krt_rt_notify(struct proto *P, struct channel *ch UNUSED, const net_addr *net,
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (p->initialized) /* Before first scan we don't touch the routes */
|
krt_replace_rte(p, net, new, old);
|
||||||
krt_replace_rte(p, net, new, old);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -813,6 +816,7 @@ krt_feed_end(struct channel *C)
|
|||||||
}
|
}
|
||||||
|
|
||||||
p->ready = 1;
|
p->ready = 1;
|
||||||
|
bmap_reset(&C->export_reject_map, 16);
|
||||||
krt_scan_timer_kick(p);
|
krt_scan_timer_kick(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user