Date: Thu, 24 Aug 2006 07:40:33 +0200 From: Fredrik Lindberg <fli+freebsd-net@shapeshifter.se> To: Pat Lashley <patl@volant.org> Cc: freebsd-net@freebsd.org, Doug Barton <dougb@freebsd.org> Subject: Re: Zeroconfig and Multicast DNS Message-ID: <44ED3BD1.3030206@shapeshifter.se> In-Reply-To: <23D2619F6BACE4E728178EE5@garrett.local> References: <DD49A62B2AB4E38804FB10B6@garrett.local> <44EA1926.2000501@shapeshifter.se> <9C04919EE684029A410DE208@garrett.local> <44EAC40E.9000904@shapeshifter.se> <3E654CC0217F90E20FCD806E@garrett.local> <44EC90B7.6090908@shapeshifter.se> <44ECB0F2.9040300@FreeBSD.org> <C408C9E0406302DF5EE12E67@garrett.local> <20060823212110.GD27961@lor.one-eyed-alien.net> <D6D2605619AD2B0F140F5802@garrett.local> <20060823221835.GA28978@lor.one-eyed-alien.net> <23D2619F6BACE4E728178EE5@garrett.local>
next in thread | previous in thread | raw e-mail | index | archive | help
Pat Lashley wrote: > >> The one thing >> I'd be worried about is how the socket code handles connect() requests. >> My hope would be that it would pick the address that goes with the >> router to be used and thus the LLA would never be the source of a packet >> going to a non-LLA address in normal circumstances. > > The RFC is pretty explicit about the need to prefer non-LLA addresses. > We may need to put some explicit checks in the connect() code to enforce > that preference in the aliased case. The trick, of course, is to > recognize those cases where the LLA address must be used anyway. > > Hmmm. Interesting routing problem. Basically, we need to prefer a route > that doesn't use the LLA (unless the destination is in an LLA); but > still handle the edge cases like having the default route be through an > LLA-only-connected router. (Which MUST do NAT...) > > Um..wouldn't the routing code handle this? If you set a lla address and some other address on a interface like 192.168.0.2 or something and then a default route of 192.168.0.1, I would assume that an application without specific knowledge that tries to contact an external address would get 192.168.0.2 as the source address and that the packet is sent to 192.168.0.1. If you're in the situation that you need lla (no dhcp server available), you wouldn't know the default route right? And if you need to configure the default route manually it isn't really zeroconfig any longer. Fredrik Lindberg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ED3BD1.3030206>