exists in the same network, the routes are distinguished by their gateway
address, which is the associated interface address.
The ospfd has to track the gateway addresses so that kroute_matchgw() is able to
find the correct routes.
OK claudio@
-/* $OpenBSD: kroute.c,v 1.110 2018/06/25 22:16:53 remi Exp $ */
+/* $OpenBSD: kroute.c,v 1.111 2018/07/10 11:49:04 friehm Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
if ((sa = rti_info[RTAX_GATEWAY]) != NULL) {
switch (sa->sa_family) {
case AF_INET:
- if (rtm->rtm_flags & RTF_CONNECTED) {
+ if (rtm->rtm_flags & RTF_CONNECTED)
flags |= F_CONNECTED;
- break;
- }
nexthop.s_addr = ((struct
sockaddr_in *)sa)->sin_addr.s_addr;