From owner-freebsd-net Mon Jan 15 17:47:47 2001 Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 4166737B69E for ; Mon, 15 Jan 2001 17:47:30 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0G1lKG02966; Mon, 15 Jan 2001 17:47:20 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101160147.f0G1lKG02966@iguana.aciri.org> Subject: Re: annoying bug on routing tables... In-Reply-To: <3448.979608600@coconut.itojun.org> from "itojun@iijlab.net" at "Jan 16, 2001 10:30: 0 am" To: itojun@iijlab.net Date: Mon, 15 Jan 2001 17:47:20 -0800 (PST) Cc: rizzo@aciri.org, net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >Any idea on where the old address is stored ? > > try using > # route -n get 10.0.0.0 > and you'll see rt_ifa holding pointer to 10.0.0.1. rt_ifa is used for > source address selection. thanks, that was it (with a -v flag to see all...) > IMHO IPv4 code is not very friendly with multiple addresses on single > interface. i believe the following items are assumed for the use > of rt_ifa. but it seems that when you change interface address the call to in_ifscrub() should take care of removing the old address... which maybe is not occurring for some reason ? cheers luigi > - interface address do not change too frequently (or set on boot time) > - only destination address matters to source address selection > if we do not assume the following, we should (1) compute source address > every time from rt_ifp and destionation address, or (2) refresh rt_ifa > every time interface address changes. not sure which one is better - > (2) has problem with manually configured rt_ifa (some people controls > source address selection by route -ifa). > > itojun > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message