public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] FW: Ppp echo request problem
@ 2005-05-19 14:20 Retallack, Mark (Siemens)
  0 siblings, 0 replies; only message in thread
From: Retallack, Mark (Siemens) @ 2005-05-19 14:20 UTC (permalink / raw)
  To: ecos-discuss


We have had a problem with the ppp echo requests, when the ppp
connection has been running for a long period of time.  If the ppp peer
connection is re-negotiated, then the lcp layer can start sending extra
echo requests. The number of requests sent increases each time the
connection is re-negotiated, eventually causing the connection to
terminate automatically after one minute.

The problem seems to be in lcp.c, function LcpEchoCheck. The link can be
terminated during the call to LcpSendEchoRequest if the peer is not
responding and this will result in the timeout being created for the
link which is now closed. When the ppp is re-negotiated, the extra
timeout still persists and causing the problems described above.

Has anyone had this problem?

Suggested fix would be to only call TIMEOUT if the ppp link is still
open - see below:-

static void
LcpEchoCheck (f)
    fsm *f;
{
    LcpSendEchoRequest (f);

    /*
     * Start the timer for the next interval, provided that the
     * link is still in the "OPENED" state.
     */
    assert (lcp_echo_timer_running==0);
    if (f->state == OPENED) {
        TIMEOUT (LcpEchoTimeout, f, lcp_echo_interval);
        lcp_echo_timer_running = 1;
    }
}


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-19 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19 14:20 [ECOS] FW: Ppp echo request problem Retallack, Mark (Siemens)

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