[ECOS] ecos with lwip and 2 interfaces

Mandeep Sandhu mandeepsandhu.chd@gmail.com
Mon Sep 21 14:05:00 GMT 2009


Hi All,

I've been running my application with Simon's recent port of lwIP
(1.3.1) with ecos with the linux synthetic target.

Things have been running fine with the app only using 1 net i/f, i.e
et0. et0 maps to my linux tap device.

synth_device ethernet {
   eth0 ethertap tap0
}

Now I need to use a second interface. So 'et1' will map to the real
eth0 on my PC. For this I modified my tdf file as such:

synth_device ethernet {
   eth0 ethertap tap0
   eth1 real eth0
}

In the lwIP config, I've enabled "eth1".

However, in the app a call to cyg_lwip_sequential_init() only
initializes et0 and I don't see any init for et1. I've tried using
both, a static as well as DHCP IP addr for it. But that does not help.

Has anybody used to 2 interfaces with the recent port of lwIP? Is
there anything else that I need to do, either in configuration or in
my app?

Thanks,
-mandeep

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list