Make kroute_matchgw() also work with connected routes.
authorclaudio <claudio@openbsd.org>
Thu, 15 Sep 2022 08:20:14 +0000 (08:20 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 15 Sep 2022 08:20:14 +0000 (08:20 +0000)
commit4e6cf07af2daeb0f6369cd36568b8d810fa86c10
tree9ecb11d45da2b31b20bf25a510d35de4ba8d0305
parent51e6ed8b7e7efec0d50fadf56450317d04e1bb47
Make kroute_matchgw() also work with connected routes.

Connected routes have no gateway set but only have ifindex set.
When an interface is deconfigured this makes sure the right route is
removed.
OK tb@
usr.sbin/bgpd/kroute.c