From f990fc61e0dd13ae90c9bbff811736dfd52988b0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 16 May 2000 13:36:38 +0000 Subject: When in persist mode, don't delete routes from kernel tables even if they cease to exist in our routing tables due to protocols having shut down. --- sysdep/unix/krt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdep') diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index 74ab223..9bc2980 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -667,6 +667,8 @@ krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs) { struct krt_proto *p = (struct krt_proto *) P; + if (shutting_down && KRT_CF->persist) + return; if (new && (!krt_capable(new) || new->attrs->source == RTS_INHERIT)) new = NULL; if (!(net->n.flags & KRF_INSTALLED)) -- cgit v1.2.3