From owner-freebsd-net@FreeBSD.ORG Mon Feb 18 10:49:39 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC1D116A419; Mon, 18 Feb 2008 10:49:39 +0000 (UTC) (envelope-from jp@tns.cz) Received: from bns.tns.cz (bns.tns.cz [213.194.214.115]) by mx1.freebsd.org (Postfix) with ESMTP id 8739D13C458; Mon, 18 Feb 2008 10:49:39 +0000 (UTC) (envelope-from jp@tns.cz) Received: from bns.tns.cz (localhost [127.0.0.1]) by bns.tns.cz (Postfix) with ESMTP id 05FEC55F56E; Mon, 18 Feb 2008 11:49:38 +0100 (CET) Received: from bonifac.tns.cz (bertik [192.168.144.14]) by bns.tns.cz with ESMTP id 4FEB2O40014IRYQT309; Mon, 18 Feb 2008 11:49:37 +0100 (CET) Received: by bonifac.tns.cz (Postfix, from userid 1001) id DF3C8F1B92; Mon, 18 Feb 2008 11:50:24 +0100 (CET) Date: Mon, 18 Feb 2008 11:50:24 +0100 From: Josef Pojsl To: Eygene Ryabinkin Message-ID: <20080218105024.GA1080@bonifac.tns.cz> References: <20080207074944.GA56085@bonifac.tns.cz> <20080208105357.GF1142@bonifac.tns.cz> <20080213203012.GB1157@bonifac.tns.cz> <5ZtxcL6cRo84tm1uYJcECu4DBCo@49l6neKHPg6j4SHeejH198Klzys> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ZtxcL6cRo84tm1uYJcECu4DBCo@49l6neKHPg6j4SHeejH198Klzys> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-net@freebsd.org, farrokhi@FreeBSD.org, Claudio Jeker Subject: Re: ospf cost and route selection (openospfd) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 10:49:39 -0000 Hello Eygene, On Sun, Feb 17, 2008 at 08:11:04PM +0300, Eygene Ryabinkin wrote: > I should more carefully study current OpenBSD CVS: the fix for your > problem was committed 5 months ago. Claudio mentioned it (and he > is the author of the patch itself), but the fix didn't get into 4.2. > > The funny thing is that I had wrote simular (but lower quality) fix > for the problem today and decided to look at the current OpenOSPFD > code. And looking at the last revision of ospfd/rde_spf.c I had > found calls to calc_nexthop() that were very simular to mine ones ;)) > > OK, to the point: the inlined patch should go to the 'files' > directory, named 'patch-p2p_interfaces'. I assume that all my > previous patches to make 4.2 to compile and run were applied. Thaks a lot, I have applied that patch and it works! Ospfctl shows the right interface and routing table is correct as well. I have tried that for my simple config with two machines and two gre interfaces. The big picture of my test network includes six machines and about twelve interfaces, so I am about to spread that patch and start tests of the whole thing. Thanks again, -- Josef