Don't try to delete interface routes on CONFIG_AUTO_ROUTES systems.
This commit is contained in:
parent
6c02d83f4d
commit
3f2a21fd34
1 changed files with 8 additions and 1 deletions
|
@ -178,7 +178,14 @@ krt_got_route(struct krt_proto *p, rte *e)
|
||||||
if (old = net->routes)
|
if (old = net->routes)
|
||||||
{
|
{
|
||||||
if (!krt_capable(old))
|
if (!krt_capable(old))
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_AUTO_ROUTES
|
||||||
|
if (old->attrs->source == RTS_DEVICE)
|
||||||
|
verdict = KRF_SEEN;
|
||||||
|
else
|
||||||
|
#endif
|
||||||
verdict = krt_capable(e) ? KRF_DELETE : KRF_SEEN;
|
verdict = krt_capable(e) ? KRF_DELETE : KRF_SEEN;
|
||||||
|
}
|
||||||
else if (krt_uptodate(e, net->routes))
|
else if (krt_uptodate(e, net->routes))
|
||||||
verdict = KRF_SEEN;
|
verdict = KRF_SEEN;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue