From owner-freebsd-questions Sat Apr 15 13:05:33 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA22034 for questions-outgoing; Sat, 15 Apr 1995 13:05:33 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA22028 for ; Sat, 15 Apr 1995 13:05:27 -0700 Received: from corbin.Root.COM (corbin.Root.COM [198.145.90.18]) by Root.COM (8.6.8/8.6.5) with ESMTP id NAA20042; Sat, 15 Apr 1995 13:05:24 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.11/8.6.5) with SMTP id NAA00924; Sat, 15 Apr 1995 13:05:24 -0700 Message-Id: <199504152005.NAA00924@corbin.Root.COM> To: mull@atlas.ontos.com cc: freebsd-questions@FreeBSD.org Subject: Re: Is there a PPP bug in 2.0-RELEASE of FreeBSD which causes a reboot? In-reply-to: Your message of "Sat, 15 Apr 95 15:18:11 EDT." <199504151918.PAA22655@atlas.ontos.com> From: David Greenman Reply-To: davidg@Root.COM Date: Sat, 15 Apr 1995 13:05:23 -0700 Sender: questions-owner@FreeBSD.org Precedence: bulk >> Subject: Re: HELP: How to get PPP working on FreeBSD 2.0 ? >> Date: 30 Mar 1995 07:24:58 GMT > >> ... but don't forget to patch the file "if_ppp.c". The PPP daemon in R2.0 has >> a bug ! > >Is this so and how can I get the fix without grabbing a whole new >distribution? (I have the sources for 2.0). This should fix the problem. -DG Index: if_ppp.c =================================================================== RCS file: /home/ncvs/src/sys/net/if_ppp.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** 1.6 1994/11/01 22:18:34 --- 1.7 1994/11/23 08:29:44 *************** *** 69,75 **** * Paul Mackerras (paulus@cs.anu.edu.au). */ ! /* $Id: if_ppp.c,v 1.6 1994/11/01 22:18:34 wollman Exp $ */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ #include "ppp.h" --- 69,75 ---- * Paul Mackerras (paulus@cs.anu.edu.au). */ ! /* $Id: if_ppp.c,v 1.7 1994/11/23 08:29:44 ugen Exp $ */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ #include "ppp.h" *************** *** 432,437 **** --- 432,438 ---- m_freem(m0); return (ENOBUFS); } + m->m_len=0; if (uio->uio_resid >= MCLBYTES / 2) MCLGET(m, M_DONTWAIT); len = M_TRAILINGSPACE(m);