pppd on linux: ioctl problem

pppd on linux: ioctl problem

Post by Andreas S. Oesterhel » Thu, 13 Jan 2000 04:00:00



Hello,

..maybe someone can help me with a strange problem I'm
experiencing with pppd 2.3.5 under Linux 2.2.5:
(same problem with pppd 2.2.x)

When called, pppd complains via syslog that it can't find out
about its interface and then terminates:

  paradis pppd[869]: ioctl(PPPIOCGUNIT): Operation not permitted(1)

This results from the following code in .../pppd/sys-linux.c, function
establish_ppp:

 /*
  * Find out which interface we were given.
  */
     if (ioctl(ppp_fd, PPPIOCGUNIT, &x) < 0)
       {
         if ( ! ok_error (errno))
           {
             syslog(LOG_ERR, "ioctl(PPPIOCGUNIT): %m(%d)", errno);
             die(1);
           }
       }

The problem occurs only on my Linux 2.2.5 machine and is not
dependant on configuration, i.e. you can call pppd with no options
and an empty /etc/ppp/options file and still get this behaviour.

Ipppd runs fine on the same machine.

Could it be that kernel support for normal ppp and ISDN-syncppp
interfere when both are built as modules?

Thank you for any hint,
--Andreas

 
 
 

pppd on linux: ioctl problem

Post by Andreas S. Oesterhel » Thu, 13 Jan 2000 04:00:00


Hi,

Quote:> Could it be that kernel support for normal ppp and ISDN-syncppp
> interfere when both are built as modules?

It seems that the precompiled ppp.o module in SuSE 6.1 was flaky.
Recompiling the module solved the problem.

Cheers,
--Andreas

 
 
 

1. pppd & ioctl errors

Hi. I am having problems connecting to
my ppp account as a user on my linux
system. As root, it works fine, but any
other user can't. My pppd calls my chat
script, and it dials and makes the connection,
but pppd seems to fail. This is what I get from
my syslog:

Aug 12 00:48:44 alice pppd[357]: default route ioctl(SIOCDELRT): Bad address
Aug 12 00:49:05 alice syslogd: exiting on signal 15
Aug 12 04:01:12 alice syslogd: exiting on signal 15
Aug 12 14:25:40 alice pppd[867]: ioctl(PPPIOCSINPSIG): Operation not permitted
Aug 12 14:25:40 alice pppd[867]: ioctl(PPPIOCGDEBUG): Operation not permitted
Aug 12 14:27:12 alice pppd[880]: could not set up connection
Aug 12 14:30:21 alice pppd[898]: could not set up connection
Aug 12 15:19:23 alice pppd[916]: default route ioctl(SIOCDELRT): Bad address
Aug 12 18:00:32 alice pppd[1284]: ioctl(PPPIOCSINPSIG): Operation not permitted
Aug 12 18:00:32 alice pppd[1284]: ioctl(PPPIOCGDEBUG): Operation not permitted
#

These are errors from a few different times I attempted
to make a connection. Any info would be
appreciated. Thanks.
-Brock

2. What is 4th Dimension SW Mulitplatform Ctrl-M ?

3. pppd[76]: ioctl(PPPIOCSINPSIG): Invalid argument (?????)

4. Future Domain/Slackware/Trans-Ameritech

5. pppd[2372]: ioctl(PPPIOCGUNIT): Operation not permitted(1)

6. Segfaulting programs with CONFIG_HIMEM on SMP PowerPC

7. Jul 13 08:47:19 jericho pppd[130]: ioctl(PPPIOCGUNIT): Operation not permitted

8. Clx compliation problem!

9. PPPD: ioctl(PPPIOCGUNIT): Operation not permitted

10. pppd and SMP kernel error: ioctl(PPPIOCGUNIT): Operation not permitted

11. pppd ioctl (TIOCSCTTY) error

12. Kppp - pppd - ioctl : Operation not permitted

13. PPPD and ioctl(PPPIOCGUNIT):Operation Not Permitted