Re: 2.3.51 -

From: Clemens Huebner (spamtrap@att.net)
Date: Thu Apr 13 2000 - 02:27:56 EST


"David A. Bandel" wrote:
> So, it's something in the demand dialing portion of the ppp code. Not
> good. Means the system I wanted to upgrade (for netfilter), I can't.

Hi David,

having had the same problem i looked at the pppd code. The following
should
fix your problem. Its an ugly, probably not complete fix, but it works
for me:

clemens@banjo:/home/linux$ diff -u ppp-2.3.11/pppd/sys-linux.c
ppp-2.3.11-fixed/pppd/sys-linux.c
--- ppp-2.3.11/pppd/sys-linux.c Wed Dec 22 15:51:31 1999
+++ ppp-2.3.11-fixed/pppd/sys-linux.c Thu Apr 13 00:18:01 2000
@@ -852,7 +852,7 @@
        len -= 2;
     }
     nr = read(ppp_fd, buf, len);
- if (new_style_driver && nr < 0 && (errno == EWOULDBLOCK || errno ==
EIO))
+ if (new_style_driver && nr < 0 && (errno == EWOULDBLOCK || errno ==
EIO ||ppp_fd==-1))
        nr = read(ppp_dev_fd, buf, len);
     if (nr < 0) {
        if (errno == EWOULDBLOCK || errno == EIO)

Hope this helps,
Clemens
>
> Thanx,
>
> David A. Bandel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:20 EST