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:54:16 +0000 [thread overview]
Message-ID: <4AFD8F38.1090108@workingcode.com> (raw)
In-Reply-To: <dac45060911130554u31df1580x13d2c901372567af@mail.gmail.com>
Charlie Brady wrote:
>
> On Fri, 13 Nov 2009, James Carlson wrote:
>
>> 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,
>
> I don't agree. The caller of pppd can provide the information in the
> environment. Adding stuff to pppd would just be bloat, and more code
> generally means more bugs.
>
> KISS.
I didn't say it would necessarily need to be something added to pppd.
How to arrange for storing and retrieving that information sounds like a
detailed design decision to me, and might not necessarily involve pppd.
The high level issue is that it should be possible for the user (or the
user's application) to know just the "ppp0" identity and end up knowing
where that interface actually goes.
I think stuffing it into the environment is just a hack. It sort of
works, but there's no standard way to encode the information in a string
format, so how it's done is going to end up varying by vendor or even by
system administrator whim. That's not a great answer for folks trying
to build third party applications. (Such as, say, an SNMP agent
supporting interface stacking ...)
For what it's worth, I agree that pppd probably shouldn't care much
about this.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
next prev parent reply other threads:[~2009-11-13 16:54 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
2009-11-13 16:42 ` Charlie Brady
2009-11-13 16:54 ` James Carlson [this message]
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=4AFD8F38.1090108@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.