linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails
@ 2005-11-12 18:03 Jay Nitikman
  2005-11-13 23:51 ` Jay Nitikman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jay Nitikman @ 2005-11-12 18:03 UTC (permalink / raw)
  To: linux-ppp

My working vpn connection stopped working "suddenly". I did some testing 
and discovered that the call:

ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data)

in ccp_test() in sys-linux.c in pppd always returns EINVAL.

My kernel, 2.6.10-gentoo-r6, has MPPE compiled in, not as a module.
The ppp_dev_fd has a value of "22" which seems reasonable.  So it 
appears that PPPIOCSCOMPRESS is invalid.  Huh?

I am using Gentoo ppp-2.4.3-r9.

This has been working fine for months.  I have tried rebooting, both 
cold and warm.  I've tried rebuilding ppp-2.4.3-r9.  I've tried 
ppp-2.4.2-r15.  My vpn provider says that nothing has changed on their side.

Any ideas why that ioctl should fail and how to fix it?

-- 
-----------------
Jay Nitikman
jay@permeable.com
-----------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails
  2005-11-12 18:03 ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails Jay Nitikman
@ 2005-11-13 23:51 ` Jay Nitikman
  2005-11-14  0:10 ` James Cameron
  2005-11-14 13:20 ` Jay Nitikman
  2 siblings, 0 replies; 4+ messages in thread
From: Jay Nitikman @ 2005-11-13 23:51 UTC (permalink / raw)
  To: linux-ppp

Okay, I have more information.  My boot log does not show the following 
line:

PPP MPPE Compression module registered

Which seems to be required in order for MPPE to be valid.  I have no 
idea what would prevent the compiled-in MPPE module from registering.

Any ideas would be helpful.

Jay

Jay Nitikman wrote:
> My working vpn connection stopped working "suddenly". I did some testing 
> and discovered that the call:
> 
> ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data)
> 
> in ccp_test() in sys-linux.c in pppd always returns EINVAL.
> 
> My kernel, 2.6.10-gentoo-r6, has MPPE compiled in, not as a module.
> The ppp_dev_fd has a value of "22" which seems reasonable.  So it 
> appears that PPPIOCSCOMPRESS is invalid.  Huh?
> 
> I am using Gentoo ppp-2.4.3-r9.
> 
> This has been working fine for months.  I have tried rebooting, both 
> cold and warm.  I've tried rebuilding ppp-2.4.3-r9.  I've tried 
> ppp-2.4.2-r15.  My vpn provider says that nothing has changed on their 
> side.
> 
> Any ideas why that ioctl should fail and how to fix it?
> 

-- 
-----------------
Jay Nitikman
jay@permeable.com
-----------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails
  2005-11-12 18:03 ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails Jay Nitikman
  2005-11-13 23:51 ` Jay Nitikman
@ 2005-11-14  0:10 ` James Cameron
  2005-11-14 13:20 ` Jay Nitikman
  2 siblings, 0 replies; 4+ messages in thread
From: James Cameron @ 2005-11-14  0:10 UTC (permalink / raw)
  To: linux-ppp

Try it as a module?  I've never got it to work statically compiled.

-- 
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails
  2005-11-12 18:03 ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails Jay Nitikman
  2005-11-13 23:51 ` Jay Nitikman
  2005-11-14  0:10 ` James Cameron
@ 2005-11-14 13:20 ` Jay Nitikman
  2 siblings, 0 replies; 4+ messages in thread
From: Jay Nitikman @ 2005-11-14 13:20 UTC (permalink / raw)
  To: linux-ppp

I finally got it to work with modules.  I found conflicting module 
information online, but the following works for me:

Compiled in Kernel: PPP
Kernel Module: PPP-MPPE, SHA1, SHA256, SHA512, ARC4

Set "mpppe stateless" in options.pptp

It really worked for six months with PPP-MPPE compiled into the kernel.

Thanks,

James Cameron wrote:
> Try it as a module?  I've never got it to work statically compiled.
> 

-- 
-----------------
Jay Nitikman
jay@permeable.com
-----------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-14 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 18:03 ioctl(ppp_dev_fd, PPPIOCSCOMPRESS, (caddr_t) &data) fails Jay Nitikman
2005-11-13 23:51 ` Jay Nitikman
2005-11-14  0:10 ` James Cameron
2005-11-14 13:20 ` Jay Nitikman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).