From: Paul Mackerras <paulus@samba.org>
To: linux-ppp@vger.kernel.org
Subject: Re: wrong return code in pppd 2.4.5
Date: Sat, 06 Mar 2010 07:08:52 +0000 [thread overview]
Message-ID: <20100306070852.GI27606@brick.ozlabs.ibm.com> (raw)
In-Reply-To: <4B73C880.2040100@bfs.de>
On Thu, Feb 11, 2010 at 10:06:08AM +0100, walter harms wrote:
> I found this bug in ppp 2.4.5 (Source:ftp://ftp.samba.org/pub/ppp/ppp-2.4.5.tar.gz).
>
> After idle the pppd should return with 12 (idle timeout) but does
> return with 16 (hang up).
> (see log below)
>
> Is this a known problem ? Is there a patch available ?
>
> re,
> wh
>
>
>
> /var/log/messages:
>
> ....
> Feb 10 11:02:51 mws3-94700737 daemon.notice pppd[1716]: Terminating connection due to lack of activity.
> Feb 10 11:02:51 mws3-94700737 daemon.info pppd[1716]: Connect time 1.4 minutes.
> Feb 10 11:02:51 mws3-94700737 daemon.info pppd[1716]: Sent 3090 bytes, received 3869 bytes.
> Feb 10 11:02:51 mws3-94700737 daemon.debug pppd[1716]: Script /etc/ppp/ip-down started (pid 1751)
> Feb 10 11:02:51 mws3-94700737 daemon.debug pppd[1716]: sent [LCP TermReq id=0x2 "Link inactive"]
> Feb 10 11:02:51 mws3-94700737 daemon.debug pppd[1716]: Script /etc/ppp/ip-down finished (pid 1751), status = 0x0
> Feb 10 11:02:54 mws3-94700737 daemon.debug pppd[1716]: sent [LCP TermReq id=0x3 "Link inactive"]
> Feb 10 11:02:57 mws3-94700737 daemon.notice pppd[1716]: Connection terminated.
> Feb 10 11:02:58 mws3-94700737 daemon.notice pppd[1716]: Modem hangup
> Feb 10 11:02:58 mws3-94700737 daemon.info pppd[1716]: Exit.
> Feb 10 11:02:58 mws3-94700737 user.notice root: pppd terminated with: 16
Is this talking to a modem attached to a real serial port? I'm
wondering what might have caused pppd to see a hangup from the modem.
In any case, I suppose pppd should ignore hangups once we've decided
to terminate the link from our end. Patches welcome. :)
Paul.
next prev parent reply other threads:[~2010-03-06 7:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 9:06 wrong return code in pppd 2.4.5 walter harms
2010-02-24 9:02 ` walter harms
2010-03-06 7:08 ` Paul Mackerras [this message]
2010-03-06 11:33 ` walter harms
2010-03-07 4:25 ` Paul Mackerras
2010-03-11 16:04 ` walter harms
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=20100306070852.GI27606@brick.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-ppp@vger.kernel.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 NNTP newsgroup(s).