Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!cs.utexas.edu!convex!convex!constellation!news.uoknor.edu!ns1.nodak.edu!plains.NoDak.edu!ortmann From: ortmann@plains.NoDak.edu (Daniel Ortmann) Subject: Re: PPP crashes on 2.0. Sender: usenet@ns1.nodak.edu (Usenet login) Message-ID: <D16zI5.Cwz@ns1.nodak.edu> Date: Thu, 22 Dec 1994 03:10:53 GMT References: <3cmvhn$8jn@shore.shore.net> <3cpchc$60g@guillotine.mtl.dmr.ca> Nntp-Posting-Host: plains.nodak.edu Organization: North Dakota Higher Education Computing Network Lines: 78 In article <3cpchc$60g@guillotine.mtl.dmr.ca>, Jean-Pierre Lamarche <lamarcjp@dmr.ca> wrote: >witr@rwwa.com (Robert Withrow) wrote: >> >> I hate to bring this up, but (after reading the faq) I don't >> think I ``qualify'' for using -current, but these PPP crashes >> are keeping me from being able to use 2.0. Is there some >> other way to get the PPP ``patches''? >> >> I tried using the if_ppp.c from -current, but it causes link-time >> errors for the kernel... > >What do you mean by PPP crash? > >Does ppp stop working or does your system crash. > >Ever since we upgraded our gateway to Freebsd2.0 two weeks ago our >system crashes once to twince a day. It simply reboot without any >messages in /var/log/messages to give us a clue of any kind. We have >a 28 800 ppp link with our provider and 4 slip links available for >our users. > >I have been unable to do anything about it so far... I received the patch to if_ppp.c that was posted a few weeks ago from a kind Usenet'ter. I have been running it all evening and have not had the slightest problem. Here it is: From jhupp@Gensys.com Mon Dec 19 04:32:43 1994 Received: from Gensys.com (port145.blkbox.com) by plains.NoDak.edu; Mon, 19 Dec 1994 04:32:38 -0600 Received: (from jhupp@localhost) by Gensys.com (8.6.8/8.6.9) id EAA24456 for ortmann@plains.NoDak.edu; Mon, 19 Dec 1994 04:32:15 -0600 Date: Mon, 19 Dec 1994 04:32:15 -0600 From: Jeff Hupp <jhupp@Gensys.com> Message-Id: <199412191032.EAA24456@Gensys.com> To: ortmann@plains.NoDak.edu (Daniel Ortmann) Subject: Re: Modem stuff and PPP crashes Newsgroups: comp.os.386bsd.questions Organization: Gensys Technologies, Inc. X-Newsreader: TIN [version 1.2 PL2] Status: OR In article <D10tII.Dty@ns1.nodak.edu> you scratched: :In article <GENE.94Dec13192705@starkhome.cs.sunysb.edu>, :Gene Stark <gene@starkhome.cs.sunysb.edu> wrote: :>In article <D0oKCt.ntA@ns1.nodak.edu> ortmann@plains.NoDak.edu (Daniel Ortmann) writes: :Unfortunately my news server seems to have swallowed the articles dealing :with the problem. :1) Did someone actually resolve the problems with the PPP related crashes? Below is the PPP fix: This single line fix (courtesy Terry Lambert/Gene Stark) has resolved all PPP panics.. *** if_ppp.c.orig Tue Nov 22 07:38:43 1994 --- if_ppp.c Tue Nov 22 07:39:17 1994 *************** *** 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); -- Mark Veteikis mark@iphase.com 1-214-919-9257 Interphase Corp. 13800 Senlac Dallas Tx. 75234 -- Jeff Hupp <Jhupp@gensys.com, root@gensys.com> Finger Jhupp@gensys.com for PGP Public Key. Is this a video game or are we killing people?