Linux PPP protocol development
 help / color / mirror / Atom feed
From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: getting the device of the ppp connection
Date: Fri, 13 Nov 2009 16:34:40 +0000	[thread overview]
Message-ID: <4AFD8AA0.9060105@workingcode.com> (raw)
In-Reply-To: <dac45060911130554u31df1580x13d2c901372567af@mail.gmail.com>

walter harms wrote:
> 
> Charlie Brady schrieb:
>> Have a look at daemontools or runit for mechanisms to give you good
>> reliable control of the execution environment of long-running processes.
>>
>> ---
> 
> you can scan the output of ifconfig -a,
> but normaly pppd setups a ppp0.

I think he's actually asking about the device _underneath_ PPP that's in
use, not the "ppp0" network interface that's visible to IP.

For a serial link, that underlying interface is something like "tty0"
(perhaps including information about the number dialed, if it's a modem
or TA link), and for a PPPoE session, that's something like "eth0" plus
access server name and server Ethernet address.  There are many other
cases, including tunneled connections (L2TP and the like) and more
exotic media such as PPPoA and Frame Relay where the underlying
mechanism may have multiple forms of addressing.  In fact, it may have
multiple layers of information to dig through.  (SNMP uses ifstack for
this, I think.)

This is information that's really known only to the dialer involved, and
not to pppd, which 'sees' only a channel for PPP frames.  You can hack
around the issue by setting an environment variable to communicate the
information needed, but there's no native support in the current design
for recording this medium-dependent information.

There probably should be something added, and I'm sure something could
be hacked together for a few special cases, but it's likely a
complicated problem to solve _well_.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

  parent reply	other threads:[~2009-11-13 16:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13 13:54 getting the device of the ppp connection Mark Ryden
2009-11-13 14:01 ` Charlie Brady
2009-11-13 15:00 ` walter harms
2009-11-13 16:34 ` James Carlson [this message]
2009-11-13 16:42 ` Charlie Brady
2009-11-13 16:54 ` James Carlson
2009-11-14  5:47 ` Paul Mackerras

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=4AFD8AA0.9060105@workingcode.com \
    --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