From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: IFF_RUNNING support for ppp interfaces?
Date: Mon, 09 Feb 2009 12:10:45 +0000 [thread overview]
Message-ID: <18832.7493.713937.983324@gargle.gargle.HOWL> (raw)
In-Reply-To: <OF25BF4B49.1E3AF8FD-ONC1257551.0047CFD6-C1257551.00493095@transmode.se>
Joakim Tjernlund writes:
> James Carlson <carlsonj@workingcode.com> wrote on 04/02/2009 18:14:44:
> >
> Sorry for the late reply, I got busy and forgot ..
>
> > Joakim Tjernlund writes:
> > > I wonder how IFF_RUNNING is managed in recent pppd version(s). I very
> much
> > > like to
> > > use IFF_RUNNING to see if the link working in both ends.
> >
> > For most implementations, IFF_RUNNING cannot be controlled by anything
> > in user space (such as pppd). Instead, it's set/cleared by the
> > kernel's PPP driver.
>
> I haven't looked into how ppp is impl. in user/kernel space but I suspect
> that user space would have to help/inform the kernel ppp driver about
> RUNNING status.
The way it works today is that the daemon tears down the interface if
it detects that the interface has failed.
> > Defining "working" is difficult. Usually, the IFF_RUNNING flag is set
> > if the link is either a demand link waiting for activity or if there's
> > an active serial link underneath the connection, and IFF_UP is set
> > when IPCP successfully negotiates addresses.
>
> Perhaps, but one could flip RUNNING if echo replies stops or if
> someone pulls the cable. That would be a start
The interface itself is torn down if you set the "lcp-echo-failure"
and "lcp-echo-interval" options.
I don't think that's a problem with the current code. If you do see a
problem here, then I think it'd be helpful to have the problem itself
described in some detail, rather than focussing on what solution you'd
like to see implemented.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
next prev parent reply other threads:[~2009-02-09 12:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-02 13:18 IFF_RUNNING support for ppp interfaces? Joakim Tjernlund
2009-02-04 17:14 ` James Carlson
2009-02-08 19:23 ` Joakim Tjernlund
2009-02-09 12:10 ` James Carlson [this message]
2009-02-09 14:43 ` Joakim Tjernlund
2009-02-09 15:17 ` James Carlson
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=18832.7493.713937.983324@gargle.gargle.HOWL \
--to=carlsonj@workingcode.com \
--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