From owner-freebsd-net@FreeBSD.ORG Wed Jul 6 16:18:56 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 754DB16A41C; Wed, 6 Jul 2005 16:18:56 +0000 (GMT) (envelope-from arr@watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EA2A43D46; Wed, 6 Jul 2005 16:18:53 +0000 (GMT) (envelope-from arr@watson.org) Received: from fledge.watson.org (localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.13.3/8.13.3) with ESMTP id j66GIqVY072416; Wed, 6 Jul 2005 12:18:52 -0400 (EDT) (envelope-from arr@watson.org) Received: from localhost (arr@localhost) by fledge.watson.org (8.13.3/8.13.3/Submit) with ESMTP id j66GIqkB072413; Wed, 6 Jul 2005 12:18:52 -0400 (EDT) (envelope-from arr@watson.org) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Wed, 6 Jul 2005 12:18:52 -0400 (EDT) From: "Andrew R. Reiter" To: gnn@freebsd.org In-Reply-To: Message-ID: <20050706121804.C71236@fledge.watson.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-net@freebsd.org Subject: Re: A bit of a route socket bug... 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: Wed, 06 Jul 2005 16:18:56 -0000 Slightly off topic, but have you had a chance to look at that lock recursion bug in the routing code that I had reported awhile ago? Admittedly, I never send-pr'd it. However, I should have the original information around... Perhaps I will test. On Wed, 6 Jul 2005 gnn@freebsd.org wrote: :Howdy, : :As was reported in :http://www.freebsd.org/cgi/query-pr.cgi?pr=%0D%0A82974 : :if you do : :route change 10.3.2.1 127.0.0.1 : :on a system with a default route but no route on the 10 network at :all, you wind up setting the default route to 127.0.0.1 which is :rarely what you want. This is due to the fact that in rtsock.c around :line 431 (in CURRENT) we do a rnh_lookup but don't make sure that the :route we looked up was the one we sought. The radix code correctly :finds the most useful route to 10.3.2.1, i.e the default route, and :the dutifully hoses it. : :The question is, "What's the right fix here?" Right now I'm too tired :to figure it out, so I figure in the 8 hours I'm asleep someone else :might come up with a patch :-) : :Later, :George : :_______________________________________________ :freebsd-net@freebsd.org mailing list :http://lists.freebsd.org/mailman/listinfo/freebsd-net :To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" : : -- Andrew R. Reiter arr@watson.org