[ECOS] ecos with lwip and 2 interfaces

Mandeep Sandhu mandeepsandhu.chd@gmail.com
Wed Sep 23 13:21:00 GMT 2009


On Wed, Sep 23, 2009 at 6:40 PM, Simon Kallweit
<simon.kallweit@intefo.ch> wrote:
> Mandeep Sandhu wrote:
>>
>> I observed another thing while debugging this issue. Even though my
>> Default interface is set to eth0, the option CYGDAT_LWIP_ETH0_DEFAULT
>> in the .ecc file is still not set! I'm using "configtool" to change my
>> config. Is this a GUI tool issue?
>
> Well, it is not set, but the default value for eth0 is '1' so it does not
> need to be overwritten by a user value. When creating the tree you will
> notice the proper #define in include/pkgconf/net_lwip.h:
>
> #define CYGPKG_LWIP_ETH0_CONF 1

Oh! ok thanks.

One small thing. I think the check you added in eth_drv_init() should be

if (conf && conf->def)
        netif_set_default(netif);

Because the value of "conf->def" is set to 1 if it is the default interface.

HTH,
-mandeep

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

-- 
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