This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

ecos with lwip and 2 interfaces


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


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