Snapshot 'o' the day

Andi Kleen (ak@muc.de)
16 Sep 1997 23:37:25 +0200


Hi,

the next snapshot from David Miller's CVS tree will expose
a bug in pppd. Here is a patch to fix it:

--- ppp-2.2.0f/pppd/sys-linux.c-o Wed Sep 17 00:23:01 1997
+++ ppp-2.2.0f/pppd/sys-linux.c Wed Sep 17 00:23:11 1997
@@ -927,8 +927,11 @@

if (ioctl(sockfd, SIOCADDRT, &rt) < 0)
{
+/* The new linux routing code doesn't like routes on down devices. */
+#if 0
syslog (LOG_ERR, "ioctl(SIOCADDRT) device route: %m");
return (0);
+#endif
}
return 1;
}

I put up updated RPMS (based on the pppd from redhat 4.2) on:

ftp://ftp.firstfloor.org/pub/ak/ppp-2.2.0f-4.i386.rpm
ftp://ftp.firstfloor.org/pub/ak/ppp-2.2.0f-4.src.rpm

The patch is in the same directory.

-Andi