
From lma@varesearch.com Wed Jul 23 20:40:33 1997
Date: Wed, 23 Jul 1997 14:56:14 -0700
From: "Larry M. Augustin" <lma@varesearch.com>
To: clameter@miriam.fuller.edu
Cc: linux-kernel@vger.rutgers.edu, davem@jenolan.rutgers.edu,
    longyear@netcom.com, callahan@maths.ox.ac.uk
Subject: Re: ppp 2.3.1 patch for Linux 2.1.4x+


This reminds me, I had to modify ppp.c from ppp-2.3.1 to make it work
with kernel 2.0.31-pre2.  Here is the patch to the ppp.c distributed
with 2.3.1.  I'm not sure if any of this should be in 2.0.31 or not.

Larry


--- ppp.c       Sun Jul 13 20:50:50 1997
+++ /usr/src/linux/drivers/net/ppp.c    Mon Jul 21 10:59:54 1997
@@ -455,7 +455,7 @@
        dev->rebuild_header   = ppp_dev_rebuild;
 #endif
 
-       dev->hard_header_len  = PPP_HARD_HDR_LEN;
+       dev->hard_header_len  = PPP_HDRLEN;
 
        /* device INFO */
        dev->mtu              = PPP_MTU;
@@ -2196,6 +2196,7 @@
        struct ppp *ppp = tty2ppp (tty);
        __u8 *new_data;
        int proto;
+       int error;
 
 /*
  * Verify the pointers.
@@ -2231,7 +2232,8 @@
 /*
  * Retrieve the user's buffer
  */
-       if (copy_from_user (new_data, data, count)) {
+       COPY_FROM_USER (error, new_data, data, count);
+       if (error != 0) {
                kfree (new_data);
                return -EFAULT;
        }


>Newsgroups: linux.dev.kernel
>X-Newsreader: TIN [UNIX 1.3 unoff BETA 970321; i386 Linux 2.0.29]
>From: Christoph Lameter <clameter@miriam.fuller.edu>
>Date: 	Wed, 23 Jul 1997 10:35:26 -0700
>X-Orcpt: rfc822;linux-kernel@vger.rutgers.edu
>Sender: owner-linux-kernel@vger.rutgers.edu
>Precedence: bulk
>
>Could you post the patch for ppp please? The patch you included in your
>message is something related to omirr I guess.
>
>
>In article <XFMail.970718121604.markorr@intersurf.com> you wrote:
>
>: On 18-Jul-97 "Jeff Voskamp [MFCF]" wrote:
>: >>Version 2.3.0 of ppp(d) seems to be available on the australian site for
>: >>some months....
>: >>why isn't it bundled on current kernel releases ??
>: >
>: >Actually 2.3.1 is there now.  It needs a bit of work for 2.1.xx to
>: >get it to compile.  I should have some diffs to what's there next week
>: >if the weekend doesn't get completely eaten up with other stuff.
>
>: I'm using 2.3.1 with 2.1.44-pre3 now.   I emailed one of the authors and
>: he sent me a patch last night. Here it is:
>
>
>
>-- 
>--- +++ --- +++ --- +++ --- +++ --- +++ --- +++ --- +++ ---
>Please always CC me when replying to posts on mailing lists.
>

