Hello.

pppd version 2.4.0b1 and 2.4.0b2 will not work with sync ppp,
you get the error message:
 .. pppd[4711]: Couldn't get channel number: invalid argument
because PPPIOCGCHAN is not implemented in ppp_synctty.c.

regards

calle

--- v2.3.99-pre8.orig/drivers/net/ppp_synctty.c Fri Apr 21 22:32:06 2000
+++ v2.3.99-pre8/drivers/net/ppp_synctty.c      Wed May 17 16:25:02 2000
@@ -269,12 +269,22 @@
 
        err = -EFAULT;
        switch (cmd) {
-       case PPPIOCGUNIT:
+       case PPPIOCGCHAN:
                err = -ENXIO;
                if (ap == 0)
                        break;
                err = -EFAULT;
                if (put_user(ppp_channel_index(&ap->chan), (int *) arg))
+                       break;
+               err = 0;
+               break;
+
+       case PPPIOCGUNIT:
+               err = -ENXIO;
+               if (ap == 0)
+                       break;
+               err = -EFAULT;
+               if (put_user(ppp_unit_number(&ap->chan), (int *) arg))
                        break;
                err = 0;
                break;

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to