Nerijus Baliunas | 3 Dec 15:06
Picon

Re[3]: specific interface

On Sat, 30 Nov 2002 18:41:46 -0800 (PST) Bill Unruh <unruh <at> physics.ubc.ca> wrote:

> > I entered it in options file, but with ppp-2.3.11 I get
> # pppd call omn
> pppd: In file /etc/ppp/peers/omn: unrecognized option 'unit'
> 
> Well, I guess the answer then is to upgrade to pppd 2.4.1
> in which that option does exist.

Upgraded. But, I have unit 3 in options file (tried at the
command line also), but still:

pppd[10697]: Using interface ppp1

Regards,
Nerijus

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Frank Cusack | 3 Dec 17:10

Re: [PATCH] pppd/persist, linux 2.14.19+ - PPPIOCDETACH error

On Fri, Nov 29, 2002 at 10:21:02AM +1100, James Cameron wrote:
> Would it make more sense to set the ppp fd to be close-on-exec so that
> the child process that runs ip-down doesn't inherit it? 
> fcntl(fd,F_SETFD,FD_CLOEXEC)

Yep.  That fix has been suggested for some other problem as well and seems
better.

/fc
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bill Unruh | 3 Dec 19:20
Picon
Picon
Favicon

Re[3]: specific interface

On Tue, 3 Dec 2002, Nerijus Baliunas wrote:

> On Sat, 30 Nov 2002 18:41:46 -0800 (PST) Bill Unruh <unruh <at> physics.ubc.ca> wrote:
>
> > > I entered it in options file, but with ppp-2.3.11 I get
> > # pppd call omn
> > pppd: In file /etc/ppp/peers/omn: unrecognized option 'unit'
> >
> > Well, I guess the answer then is to upgrade to pppd 2.4.1
> > in which that option does exist.
>
> Upgraded. But, I have unit 3 in options file (tried at the
> command line also), but still:
>
> pppd[10697]: Using interface ppp1

Well, then I do not know. The unit option works such that the system
tries to use the requested unit, but if that is not available, it will
just ask for the next available unit. So there may be some reason why 3
is not available, or perhaps your kernel ppp deos not allow anything but
the next unit number (you never did tell us which kernel youwere
running-- sounds like a very old one), but I have no idea if that is the
problem.

>
> Regards,
> Nerijus
>
>

(Continue reading)

David Gurevich | 3 Dec 19:37

linux /dev/ppp question

Does anyone know why the 2.2.x linux kernel does not require the creation of
the /dev/ppp and the "new driver" in the 2.4.x kernel does? I read the
documentation and looked at the pppd source, but that did not make it any
clearer.
Thanks,
dbg

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Clifford Kite | 3 Dec 20:41
Favicon

Re: Re[3]: specific interface

On Tue, 3 Dec 2002, Bill Unruh wrote:
|On Tue, 3 Dec 2002, Nerijus Baliunas wrote:
|> Upgraded. But, I have unit 3 in options file (tried at the
|> command line also), but still:
|>
|> pppd[10697]: Using interface ppp1
|
|Well, then I do not know. The unit option works such that the system
|tries to use the requested unit, but if that is not available, it will
|just ask for the next available unit. So there may be some reason why 3
|is not available, or perhaps your kernel ppp deos not allow anything but
|the next unit number (you never did tell us which kernel youwere
|running-- sounds like a very old one), but I have no idea if that is the
|problem.

It's almost certainly the problem.  The 2.4.0 kernel was the only one of
the 2.4.x series that pppd 2.3.11 could run under, and the 2.2.x kernel
series doesn't have kernel support for the "unit <n>" option.

---
Clifford Kite            http://users3.ev1.net/~ckite/public_html/

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Nerijus Baliunas | 3 Dec 21:11
Picon

Re[4]: specific interface

On Tue, 3 Dec 2002 10:20:57 -0800 (PST) Bill Unruh <unruh <at> physics.ubc.ca> wrote:

> > Upgraded. But, I have unit 3 in options file (tried at the
> > command line also), but still:
> >
> > pppd[10697]: Using interface ppp1
> 
> Well, then I do not know. The unit option works such that the system
> tries to use the requested unit, but if that is not available, it will
> just ask for the next available unit. So there may be some reason why 3
> is not available, or perhaps your kernel ppp deos not allow anything but
> the next unit number (you never did tell us which kernel youwere
> running-- sounds like a very old one), but I have no idea if that is the
> problem.

I tried unit 2 - the same problem. Sorry about the kernel version, I wanted
to tell it, but forgot. It's 2.2.22 SMP, RH 6.2. Probably unit works only
with 2.4 kernels. OK, just tried 'unit 2' with 2.4 - it works. Is it possible
to make it work with 2.2 kernels also?

Regards,
Nerijus

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bill Unruh | 3 Dec 21:18
Picon
Picon
Favicon

Re: linux /dev/ppp question

On Tue, 3 Dec 2002, David Gurevich wrote:

> Does anyone know why the 2.2.x linux kernel does not require the creation of
> the /dev/ppp and the "new driver" in the 2.4.x kernel does? I read the
> documentation and looked at the pppd source, but that did not make it any
> clearer.

The kernel driver was completely rewritten for 2.4
 However what the detailed reasons for the different hook into the
 kernel driver I do not know.

--

-- 
William G. Unruh        Canadian Institute for          Tel: +1(604)822-3273
Physics&Astronomy          Advanced Research            Fax: +1(604)822-5324
UBC, Vancouver,BC        Program in Cosmology           unruh <at> physics.ubc.ca
Canada V6T 1Z1               and Gravity           www.theory.physics.ubc.ca/
For step by step instructions about setting up ppp under Linux, see
            http://www.theory.physics.ubc.ca/ppp-linux.html

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bill Unruh | 3 Dec 21:21
Picon
Picon
Favicon

Re[4]: specific interface

On Tue, 3 Dec 2002, Nerijus Baliunas wrote:

> On Tue, 3 Dec 2002 10:20:57 -0800 (PST) Bill Unruh <unruh <at> physics.ubc.ca> wrote:
>
> > > Upgraded. But, I have unit 3 in options file (tried at the
> > > command line also), but still:
> > >
> > > pppd[10697]: Using interface ppp1
> >
> > Well, then I do not know. The unit option works such that the system
> > tries to use the requested unit, but if that is not available, it will
> > just ask for the next available unit. So there may be some reason why 3
> > is not available, or perhaps your kernel ppp deos not allow anything but
> > the next unit number (you never did tell us which kernel youwere
> > running-- sounds like a very old one), but I have no idea if that is the
> > problem.
>
> I tried unit 2 - the same problem. Sorry about the kernel version, I wanted
> to tell it, but forgot. It's 2.2.22 SMP, RH 6.2. Probably unit works only
> with 2.4 kernels. OK, just tried 'unit 2' with 2.4 - it works. Is it possible
> to make it work with 2.2 kernels also?

Yes, upgrade to 2.4.
Or you could spend the next year of your life figuring out how to fit
the completely rewritten kernel ppp code of the 2.4 series into a 2.2
kernel. I think the first is easier.

I hope you are keeping up with the all the security updates for Redhat
6.2 as well.

(Continue reading)

Nerijus Baliunas | 3 Dec 22:30
Picon

Re[5]: specific interface

On Tue, 3 Dec 2002 12:21:57 -0800 (PST) Bill Unruh <unruh <at> physics.ubc.ca> wrote:

> Yes, upgrade to 2.4.
> Or you could spend the next year of your life figuring out how to fit
> the completely rewritten kernel ppp code of the 2.4 series into a 2.2
> kernel. I think the first is easier.

Probably ;-)

> I hope you are keeping up with the all the security updates for Redhat
> 6.2 as well.

Yes, but this has nothing to do with the subject.

Another problem, but probably specific to Red Hat, so I don't know if
anyone can help.

RH has /etc/ppp/ip-up, which calls ip-up.local if it exists when ppp
is up. I have in ip-up.local:

REALDEVICE=$1
PTP=$5

if [ "$REALDEVICE" = "ppp0" ]
then echo "$PTP" > /var/run/ppp0-ptp
fi
if [ "$REALDEVICE" = "ppp1" ]
then echo "$PTP" > /var/run/ppp1-ptp
fi

(Continue reading)

Andrew Gay | 3 Dec 22:43

Re: [PATCH] pppd/persist, linux 2.14.19+ - PPPIOCDETACH error

  There are probably things that this would fix, but I don't think it 
would help here, as I mentioned in my previous reply. The existing code 
in run_program() already closes the fd before it does the execve(). We 
just need to be sure that's done before the parent process proceeds. I'm 
sure my approach isn't the only way to do that (but it's worked 
flawlessly for me so far) - anyone care to suggest a better way?

BTW - I realised that I had malloc'ed the sigaction struct but forgotten 
to free it - there needs to be a call to free(tidysig) right after the 
pause().

- Andy

Frank Cusack wrote:

>On Fri, Nov 29, 2002 at 10:21:02AM +1100, James Cameron wrote:
>  
>
>>Would it make more sense to set the ppp fd to be close-on-exec so that
>>the child process that runs ip-down doesn't inherit it? 
>>fcntl(fd,F_SETFD,FD_CLOEXEC)
>>    
>>
>
>Yep.  That fix has been suggested for some other problem as well and seems
>better.
>
>/fc
>-
>To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
(Continue reading)


Gmane