[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Support for multiple ethernet ports

On Thu, 3 Jan 2002, Thomas Doerfler wrote:

> Another way to get more info about the problem is to list the
> interface table and routing info after your initialization.
> This is done with the functions:
>     rtems_bsdnet_show_if_stats();
>     rtems_bsdnet_show_inet_routes();
>     rtems_bsdnet_show_mbuf_stats();
> and try also:
>     rtems_bsdnet_show_icmp_stats();
>     rtems_bsdnet_show_ip_stats();
>     rtems_bsdnet_show_tcp_stats();
>     rtems_bsdnet_show_udp_stats();
> By the way: does your system accept to add the local loopback
> interface instead of your second Ethernet device? I have
> installed it in the following way:

Thank you for recommending using the show functions.

By using the rtems_bsdnet_show_inet_routes(), I found that the error I was
getting had to do with configuring the route table entry for the second
Ethernet device.  The way I had my device rtems_bsdnet_ifconfig structures
initialized, the code was trying to configure both Ethernet devices with
exactly the same route entry.

By changing the rtems_bsdnet_ifconfig structures for the Ethernet devices,
I was able to get the three ports initialized.  I still do not understand
why the RTEMS networking software creates the routing table entries it

I will have to dig a little deeper into network routing in general to
understand what is going on.

Thanks again for your help.


Alex Holeczy (alex at wmi.com)

Communication Automation Corporation (CAC)      www.cacdsp.com www.wmi.com
1180 McDermott Drive, West Chester, PA  19380

800-367-6735 Ext. 122 or 610-692-9526 Ext. 122 (Voice)
610-436-8258 (Fax)