[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Runtime network configuration
- Date: Tue, 20 Feb 2001 11:17:44 -0600
- From: eric.norum at usask.ca (Eric Norum)
- Subject: Runtime network configuration
Andrew Bythell wrote:
> Hello all.
> This question is about network configuration at run-time. I am using
> the latest RTEMS snapshot with the gen68360 BSP.
> I store network settings in an EEPROM. Currently I declare global
> rtems_bsdnet_ifconfig and rtems_bsdnet_configuration structures,
> allocate memory for these structures, then copy the data from the EEPROM
> into the allocated structures. Then I call
> Is this the best approach?
Do I have to make these variables global?
rtems_bsdnet_config must be global. The network driver configuration
structure can be static since rtems_bsdnet_config contains a pointer to
> What I am finding is that BOOTP/DHCP works fine, but using static
> settings causes "Destination Host Unreachable" after some time. I feel
> the source of the problem must be the way I'm assigning the gateway
Have you used the rtems_bsdnet_show_inet_routes() routine to print the
routing tables? Perhaps it will show you what's different between the
BOOTP/DHCP configuration and the static configuration.
Eric Norum eric.norum at usask.ca
Department of Electrical Engineering Phone: (306) 966-5394
University of Saskatchewan FAX: (306) 966-5407