Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 1995 13:05:23 -0700
From:      David Greenman <davidg@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? 
Message-ID:  <199504152005.NAA00924@corbin.Root.COM>
In-Reply-To: Your message of "Sat, 15 Apr 95 15:18:11 EDT." <199504151918.PAA22655@atlas.ontos.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504152005.NAA00924>