*BSD News Article 42680


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.hawaii.edu!ames!hookup!swrinde!pipex!peernews.demon.co.uk!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.os.386bsd.questions
Subject: Re: pppd patches, which and wha?
Date: 12 Feb 1995 03:14:16 -0000
Organization: None
Lines: 31
Message-ID: <3hjue8$pa3@awfulhak.demon.co.uk>
References: <1995Feb11.144940.17067@wdl.loral.com>
NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Richard Toren (rpt@miles) wrote:

: Gentlemen;

: I am running the FreeBSD 2.0R with no SNAPS.

: Just this week I got PPP running. One day it seems fine, the next it 
: simply reboots my system. I had saved the following message that seemed
: to address this problem.

You need the following:
 
*** 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);

It's only one line.

--
Brian <brian@awfulhak.demon.co.uk>

Don't _EVER_ lose your sense of humour....