This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Dual Ethernet Cards of Intel i82559 for Intel IXDP465 platform


On Tue, Dec 27, 2005 at 07:02:39AM -0800, Matt Jerdonek wrote:
> 
> What is likely happening is that the route for the
> subnet is associated with eth0.  When eth0 goes down,
> the subnet needs to be reassigned to eth1.  This
> doesn't happen automatically.
> 
> You can view the current list of network routes by
> invoking show_network_tables(...) in
> packages/net/bsd_tcpip/current/src/ecos/support.c.
> 
> Then you'd have to write some code to delete the route
> pointing at eth0 and replace it with the route
> pointing at eth1.  An example of that code can be
> found in the ppp stack in dodefaultroute(...) in
> packages/net/ppp/current/src/sys-ecos.c

Just to add to that.

eCos has no concept of link state, ie plugged in or not. You would
have to add an ioctl call to detect this and a "user" space thread
which polled this ioctl to detect if the state has changed. If it has
you can then delete all routes via the interface. 

The other option is to port a routing daemon. The routing daemon would
notice the lack of routing packets over an interface and change the
routes. 

        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]