This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Bringing up two interfaces with ECOS


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.


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