Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd giving error with 2.4.18 kernel, everything OK with 2.4.7 kernel

Reply
Thread Tools Display Modes

pppd giving error with 2.4.18 kernel, everything OK with 2.4.7 kernel

 
 
vasanta
Guest
Posts: n/a

 
      09-17-2004, 07:52 PM
Moving all of our modules from 2.4.7 to 2.4.18, I have this strange
problem with PPPd, I can run this pppd on 2.4.7 card, but on 2.4.18
card, whenever the pppd is started, I am getting the following error
(we are passing this device "/dev/tts/T0" to pppd in silent mode).

Failed to reopen /dev/tts/T0

This error is coming from pppd/tty.c file, otherthing I can see is the
modem variable value is changing to '0' in 2.4.7, but this is not
changing to '0' from 1 in 2.4.18. Do I have to change anything else in
2.4.18 to make the daemon work.

I did a small workaround, changing modem=0 before reopen, then it is
not reopening, but I am getting one more below error.

pppd: Couldn't set tty to PPP discipline: Invalid arguement.

Thanks in advance, appreciated.
 
Reply With Quote
 
 
 
 
Clifford Kite
Guest
Posts: n/a

 
      09-19-2004, 04:39 PM
vasanta <(E-Mail Removed)> wrote:
> Moving all of our modules from 2.4.7 to 2.4.18, I have this strange
> problem with PPPd, I can run this pppd on 2.4.7 card, but on 2.4.18
> card, whenever the pppd is started, I am getting the following error
> (we are passing this device "/dev/tts/T0" to pppd in silent mode).


> Failed to reopen /dev/tts/T0


There is much said above that is not clear to me, as well as in the
rest of your post. But you should only be using non-negative integers
to specify a serial device file, not something like "T0" .

> This error is coming from pppd/tty.c file, otherthing I can see is the
> modem variable value is changing to '0' in 2.4.7, but this is not
> changing to '0' from 1 in 2.4.18. Do I have to change anything else in
> 2.4.18 to make the daemon work.


That is about as clear as mud to me, so my response may be way off-base.

The pppd "modem" option is set (to 1) by default. If you have a serial
device and don't want to use modem control lines then use the pppd option
"local" . If you are using a pty then modem is automatically reset to
0 by pppd (in tty.c). There should be no need to muck with tty.c or
the kernel code.

> I did a small workaround, changing modem=0 before reopen, then it is
> not reopening, but I am getting one more below error.


> pppd: Couldn't set tty to PPP discipline: Invalid arguement.


Perhaps pppd can't set the tty to PPP discipline after the "small
workaround" because the tty is not open when the change in line
discipline is attempted (in sys-linux.c).

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 11:27 AM
killing a kernel thread ....... UDP server (kernel module)......... alex Linux Networking 0 09-20-2006 11:26 AM
pppd cbcp 2.4.0 + kernel 2.4.32 Alexey Zhilin Linux Networking 0 01-21-2006 05:54 PM
pppd-2.4.2 + kernel-2.6.7 problem Dimitris Mandalidis Linux Networking 13 07-18-2004 09:52 PM
modem, pppd, kernel EIP NULL ptr deref , RH9 OtisUsenet Linux Networking 0 01-27-2004 11:26 AM



1 2 3 4 5 6 7 8 9 10 11