From: walter harms <wharms@bfs.de>
To: linux-ppp@vger.kernel.org
Subject: Re: getting the device of the ppp connection
Date: Fri, 13 Nov 2009 15:00:40 +0000 [thread overview]
Message-ID: <4AFD7498.9090400@bfs.de> (raw)
In-Reply-To: <dac45060911130554u31df1580x13d2c901372567af@mail.gmail.com>
Charlie Brady schrieb:
>
> On Fri, 13 Nov 2009, Mark Ryden wrote:
>
>> What I mean is this: I have eth0 - eth3 on a machine, and a ppp
>> connection. I want to know by a
>> short program which device is the one which the ppp connection is
>> using (I know that usually this can
>> be deduced by running "ps" for the corresponding ppp daemon, and
>> inspecting the parameters; for example, with pppoe, I have "-I eth1"
>> parameter (-I stands for interface). But I want a more general
>> way which can be used in cases when we cannot get this info).
>
> I would do this via an environment variable that you set via your start
> script:
>
> PPPOE_DEVICE=eth1 pppoe .... -I eth1
>
> 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.
re,
wh
next prev parent reply other threads:[~2009-11-13 15:00 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 [this message]
2009-11-13 16:34 ` James Carlson
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=4AFD7498.9090400@bfs.de \
--to=wharms@bfs.de \
--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.