public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Frank Pagliughi <fpagliughi@mindspring.com>
To: Frank Pagliughi <fpagliughi@mindspring.com>
Cc: ecos discuss <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] LwIP PPP interface not coming up
Date: Thu, 26 Jun 2008 13:56:00 -0000	[thread overview]
Message-ID: <48639967.3040103@mindspring.com> (raw)
In-Reply-To: <48627D9B.5030308@mindspring.com>

Frank Pagliughi wrote:
> Hey All,
>
> I'm trying to test out PPP with lwip. Currently I'm just trying to get 
> one of the lwip test applications, like 'tcpecho', to negotiate with a 
> host (a Linux machine over a direct serial connection). It performs 
> the negotiation, exchanges IP addresses, but it appears that maybe the 
> ppp interface never comes up on the target. I'm getting the same 
> behavior with an ARM EB55 target and an i386 PC target. I see similar 
> questions posted from a few years back, but no solution.
>
> Thanks,
> Frank
OK, I think I answered my own question. The code appears to be missing 
the call to bring up the interface when the PPP connection comes up. In 
sifup() in ppp.c, @ line 1009 it reads:

    if (netif_add(&pc->netif, ...)) {
        pc->if_up = 1;
        pc->errCode = PPPERR_NONE;
        ...

It never marks the interface "cp->netif" as being up.   A call to 
netif_set_up() appears to fix it:

    if (netif_add(&pc->netif, ...)) {
        netif_set_up(&pc->netif);
        pc->if_up = 1;
        pc->errCode = PPPERR_NONE;

This seems to have been added to the lwip sources at version 1.2.0.

Frank

-- 
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:[~2008-06-26 13:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25 12:05 [ECOS] SNMP authentication problem Alperen Coskun
2008-06-25 12:19 ` Andrew Lunn
2008-06-25 12:42   ` Alperen Coskun
2008-06-25 15:46     ` Andrew Lunn
2008-06-26 10:08       ` Alperen Coskun
2008-06-26 11:24         ` Gary Thomas
2008-06-26 13:28           ` Alperen Coskun
2008-06-26  7:26     ` [ECOS] LwIP PPP interface not coming up Frank Pagliughi
2008-06-26 13:56       ` Frank Pagliughi [this message]

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=48639967.3040103@mindspring.com \
    --to=fpagliughi@mindspring.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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).