[BUG] ppp/slip fails with 1.3.6[78]

Robert Riggs (rriggs@tesser.com)
Sat, 24 Feb 1996 05:04:51 -0700 (MST)


I traced my problems with ppp/slip not working to this
section of the 1.3.67 patch:

--- include/asm-i386/termios.h Sat Feb 24 04:23:03 1996
+++ include/asm-i386/termios.h.new Fri Feb 23 11:35:15 1996
@@ -268,6 +268,8 @@

#ifdef __KERNEL__

+#include <linux/string.h>
+
/*
* Translate a "termio" structure into a "termios". Ugh.
*/

Reversing this allows slip/ppp to connect.

With the patch in, I get the following errors in the syslog:

with pppd...
Feb 24 03:59:30 diamond pppd[544]: pppd 2.2.0 started by rob, uid 0
Feb 24 03:59:30 diamond pppd[544]: tcgetattr: I/O error
Feb 24 03:59:30 diamond pppd[544]: Exit.
with dip...
Feb 24 04:01:43 diamond dip[554]: DIP: tty: get_state: I/O error

And an strace of pppd shows this:

open("/dev/cua2", RDWR|NDELAY) = 7
fcntl(7, F_GETFL, 0) = 2050
fcntl(7, F_SETFL, 0x2) = 0
ioctl(7, TCGETS, 0xbffffa80) = -1 (I/O error)
time(0xbfffee54) = 825159972
getpid() = 571
write(5, "<27>Feb 24 04:06:12 pppd[571]: t".., 52) = 52
ioctl(7, TIOCMBIC, [0x2]) = -1 (I/O error)
fcntl(7, F_SETFL, 0x2) = 0
close(7) = 0
time(0xbfffee48) = 825159972
getpid() = 571
write(5, "<30>Feb 24 04:06:12 pppd[571]: E".., 37) = 37
exit(1) = ?

I've hacked around the kernel just enough to know to get
myself into trouble. My guess is that the memcpy() in
<asm/string.h> is causing the problem. I know a number
of people are running 1.3.6[78] and are not experiencing
this problem.

Rob
(rriggs@tesser.com)