From c90ecb6b0f14080b887d870f189d921dacca11f8 Mon Sep 17 00:00:00 2001 From: friehm Date: Tue, 10 Jul 2018 11:49:04 +0000 Subject: [PATCH] Since we use multiple cloning routes (mpath) if more than one ip address 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@ --- usr.sbin/ospfd/kroute.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index 233e4f9281b..9e396975f2e 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $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 @@ -1449,10 +1449,8 @@ rtmsg_process(char *buf, size_t len) 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; -- 2.20.1