git: route: Don't install a cloned route when interface is down

Roy Marples roy at crater.dragonflybsd.org
Tue Sep 10 05:45:44 PDT 2019


commit 02e9851ba5f21dc7b944483b1dbaf04d9d76f0da
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(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/02e9851ba5f21dc7b944483b1dbaf04d9d76f0da


-- 
DragonFly BSD source repository



More information about the Commits mailing list