*BSD News Article 39515


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!cs.utexas.edu!convex!convex!iphase.com!mark
From: mark@iphase.com (Mark Veteikis)
Newsgroups: comp.os.386bsd.questions
Subject: Re: PPP crashes on 2.0.
Date: 15 Dec 1994 17:11:21 GMT
Organization: Interphase Corporation, Dallas TX.
Lines: 44
Message-ID: <3cptbp$re8@que.iphase.com>
References: <3cmvhn$8jn@shore.shore.net> <3cpchc$60g@guillotine.mtl.dmr.ca>
NNTP-Posting-Host: mark@wildcat.iphase.com

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 run a "stock" 2.0R and experienced the crashes.

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