This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Bringing up two interfaces with ECOS
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Bringing up two interfaces with ECOS
- From: Anil Arvindam <anil at nband dot com>
- Date: Thu, 16 Aug 2001 11:47:07 -0700
Hi,
I am trying to bring ECOS up on a board with two interfaces. One is
physical (eth0) and one is logical (MAC). The MAC interface has its own MAC
address and IP address (which must be set via DHCP). I use
init_all_network_interfaces to bring up eth0 and the loopback interface. I
then use DCHP for the MAC interface which completes successfully, but as
soon as that is done, the board becomes inaccessible. I had to remove the
route_reinit() call within the bring_half_up function() to get this to work.
The routing table shows only the MAC entry. The questions I have are:
1) Do I need to modify DHCP (do_dhcp) to support this feature?
2) Do I have to create a route_add function to add routes to the table after
DHCP is done. If so, how? Via an AF_ROUTE ioctl if that is supported?
Or, is there some simple and obvious way that I've overlooked to get this
thing to work?
Thanks,
anil.