Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2001 17:47:20 -0800 (PST)
From:      Luigi Rizzo <rizzo@aciri.org>
To:        itojun@iijlab.net
Cc:        rizzo@aciri.org, net@FreeBSD.ORG
Subject:   Re: annoying bug on routing tables...
Message-ID:  <200101160147.f0G1lKG02966@iguana.aciri.org>
In-Reply-To: <3448.979608600@coconut.itojun.org> from "itojun@iijlab.net" at "Jan 16, 2001 10:30: 0 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> >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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101160147.f0G1lKG02966>