On Sat, 2007-08-25 at 08:06 +0200, Sven-Ola Tuecke wrote:
> Bernd,
> 
> for advance routing implicatons, I recommend reading the http://lartc.org/ .
> It's supposed to work. But who knows what special stuff users may have
> configured on their local machines... 

Yes, that's basically my concern - and that is not criticism on your
patch (or the approach as such) - it's just to avoid breaking *lots* of
setups (and not really knowing why). And the "remove that automatically
added route on Linux" is IIRC a by you somewhat recommended thing.

> I need that for the freifunk firmware and for the ff-fonera-pack as 
> well - so in my opinion this is something others may want too. If you
> dislike it, simply don't #ifdef LINUX_POLICY_ROUTING <ggg>
> 
> Doesn't compile on Win32!? MSDN says that the function is in there. Have a

Well, I just typed "make build_all" on CygWin (like dozen of times
before).

> look here (you may need the Win32 full SDK installed IMO, maybe a typo?):
> 
> http://msdn2.microsoft.com/en-us/library/bb408408.aspx

----  snip  ----
Remarks
The if_indextoname function is available on Windows Vista and later.
----  snip  ----
Sorry, "only" Win-XP (and Win2000 - but I didn't try there) here. And
given the current spread of Win-Vista, I think we need another solution.
I (or someone else) should read that page and see if I find another
function which exists here.

> And as I wrote: Theres a quirks for BSD with IPv6. The analog IPv4
> implementation looks uneffective too. Because it seeks the local iface
> config table for every route to set or del for the iface source IP addr.

Yes, it sounds so.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



