From: Paul Mackerras <paulus@samba.org>
To: linux-ppp@vger.kernel.org
Subject: Re: ppp MULTILINK issue / problem
Date: Tue, 04 May 2004 23:13:14 +0000 [thread overview]
Message-ID: <16536.9098.18883.602260@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <BCBD226C.57C%tchen@on-go.com>
Thomas Chen writes:
> in the userland pppd main loop, it calls get_input
> and in get_input, if the packet length is 0, it assume the link
> is bad and print out "Modem Hangup"
The 0 return value from get_input is an "end of file" indication. The
serial driver should return an EOF if it detects that the CD signal
has dropped. Make sure you use the "modem" option to pppd and that
you have CD and DTR hooked up correctly to the modem. It is possible
to get the serial driver to send a SIGHUP but pppd doesn't rely on
that (because it isn't possible to get the tty device to be pppd's
controlling terminal in all cases).
> should kernel ppp automaitcally disassociate the link or wait for
> the userland PPPD to call ioctl to do that ???
When pppd gets the 0 return value from get_input, it will do the ioctl
to disconnect the link from the bundle.
Paul.
next prev parent reply other threads:[~2004-05-04 23:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 14:37 ppp MULTILINK issue / problem Thomas Chen
2004-05-04 14:42 ` James Carlson
2004-05-04 22:45 ` Paul Mackerras
2004-05-04 23:05 ` Thomas Chen
2004-05-04 23:13 ` Paul Mackerras [this message]
2004-05-05 11:17 ` James Carlson
2004-07-16 16:22 ` Matthew N. Dodd
2004-07-19 2:05 ` Thomas Chen
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=16536.9098.18883.602260@cargo.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