On Sun, 7 Apr 2002, CYWare wrote:
> hmm...
>
> i setup a pppoe server that calls a customized/hacked ppp (2.4.1) daemon.
> just wanted to clarify, does pppd use the /dev/ippp*? if not, then maybe i
> won't run into the limitation of 64 connections.
>
short answer: it maybe using some other /dev/*ppp* device file series.
long answer: there's an easier and reliable way to tell w/o digging deep
into the kernel/pppd sources.
1) get the process id of a running pppd process.
ex:
ps axuw | grep pppd
2) for each pppd process, look into their list of open file descriptors.
ex: if 555 is the process id, then
ls -l /proc/555/fd/
that will list every open file descriptor the process has opened.
ex: for a regular dialup, i would have something like
0 -> /dev/ttyS0 (stdin/stdout set to the serial port)
1 -> /dev/ttyS0
...
9 -> /dev/ppp
which also means that this pppd process (with pid 555) opened
/dev/ppp which is under file descriptor 9.
of course, you should *not* look at /dev/ppp but
for the other distinct /dev/*ppp* files opened for each
pppd process.
pong
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]