Skip to contentSkip to conversation

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

DISCUSSION Jay Nitikman 2 participants 4 messages Nov 12, 2005 – Nov 14, 2005 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

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?

Signature · 4 lines
-----------------
Jay Nitikman
[email protected]
-----------------
#1 lore raw

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

Quoted 20 lines · Jay Nitikman

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?

Signature · 4 lines
-----------------
Jay Nitikman
[email protected]
-----------------
#2 lore raw
In reply to Jay Nitikman

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

Signature · 3 lines
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/
#3 lore raw
In reply to Jay Nitikman

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,

Quoted 2 lines · James Cameron

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

Signature · 4 lines
-----------------
Jay Nitikman
[email protected]
-----------------