git: route: Don't install a cloned route when interface is down
roy at crater.dragonflybsd.org
Tue Sep 10 05:45:44 PDT 2019
Author: Roy Marples <roy at marples.name>
Date: Tue Sep 10 12:00:36 2019 +0100
route: Don't install a cloned route when interface is down
When an interface is taken down, all subnet routes are removed
and thus all cloned routes are flushed.
It's possible, although unlikely, for userland to add a subnet
route when the interface is down.
In this state, EHOSTDOWN would be returned regardless, but a
cloned route would be created locked to the interface.
Instead, check if interface is down before creating the cloned
route so it's not made needlessly.
Summary of changes:
sys/net/route.c | 3 +++
1 file changed, 3 insertions(+)
DragonFly BSD source repository
More information about the Commits