public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Simon Kallweit <simon.kallweit@intefo.ch>
To: Mandeep Sandhu <mandeepsandhu.chd@gmail.com>
Cc: ecos-discuss <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] ecos with lwip and 2 interfaces
Date: Wed, 23 Sep 2009 12:48:00 -0000	[thread overview]
Message-ID: <4ABA192E.3020109@intefo.ch> (raw)
In-Reply-To: <b18c5f790909230412k7f922ab9l18dfc80de94f71fe@mail.gmail.com>

Mandeep Sandhu wrote:
> You're right Simon. Enabling the second interface there made things
> work (to some extent).
> 
> However, I'm facing a new problem now.
> 
> Previously I was using only a single interface (the Linux tap0
> device). I have implemented a DHCP server which was working fine until
> I enabled the SECOND INTERFACE.
> 
> Now, my socket writes on the first interface (the tap0 interface) have
> started failing! That is, without changing _any_ code! :( The return
> value of sendto is coming as '-1' and the error string is set to 'No
> error'. Actually this problem starts even if I don't enable support
> for eth1 in the lwIP config. Just enabling the second interface under
> "Common ethernet support -> Synthetic target ethernet driver" causes
> this problem to surface.
> 
> Any clues as to what could be going wrong?

Well, this could be a problem because the default netif was set 
incorrectly. Only one netif can be the default netif. Currently the last 
initialized ethernet device would be set as default (incorrectly). I 
have changed that in the new version, also added 'Default netif' for 
loopif and slipif devices and also expanded configurability of ethernet 
netifs to 4 devices (previously 2). Now, only the selected netif should 
be the default netif. Please test with the new version and see if that 
helps:

http://download.westlicht.ch/lwip-20090923.tar.gz

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

  reply	other threads:[~2009-09-23 12:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21 14:05 Mandeep Sandhu
2009-09-22  7:28 ` Simon Kallweit
2009-09-23 11:12   ` Mandeep Sandhu
2009-09-23 12:48     ` Simon Kallweit [this message]
2009-09-23 13:04       ` Mandeep Sandhu
2009-09-23 13:10         ` Simon Kallweit
2009-09-23 13:21           ` Mandeep Sandhu
2009-09-23 13:29             ` Simon Kallweit
2009-09-23 13:50               ` Mandeep Sandhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ABA192E.3020109@intefo.ch \
    --to=simon.kallweit@intefo.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=mandeepsandhu.chd@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).