This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Multiple network interface & routing question
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Will Wagner <will_wagner at carallon dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 9 Oct 2007 13:53:47 +0200
- Subject: Re: [ECOS] Multiple network interface & routing question
- References: <470B6536.7040205@carallon.com>
On Tue, Oct 09, 2007 at 12:25:42PM +0100, Will Wagner wrote:
> Hi All,
>
> I'm using the bsd sockets code and I have more than one interface. I am
> seeing that when one interface has to reget an address via dhcp then I get
> problems using the other interface.
>
> Looking through the code it appears there might me a problem with the
> routing table. The dhcp code calls cyg_route_reinit() in a couple of places
> - do_dhcp_down_net() and bring_half_up() which are called whilst obtaining
> an address. The cyg_route_reinit() function seems to just empty the routing
> table regardless of interface.
>
> Could this be my problem or am I looking in the wrong place? Anyone got any
> code for removing all routes for a specific interface only?
There is a patch for that somewhere in ecos-patches, probably in the
last year. Although it looked O.K. i was not convinced it would work
in all situations. Why did the original author of the DHCP client not
do something similar?. I don't have a dual interface device so i
cannot test. So i would be interested in your comments about the
patch.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss