*BSD News Article 39024


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!newsroom.utas.edu.au!minke!tas
From: tas@minke.cc.utas.edu.au (Tasman Van Ommen)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Status of SLIP and PPP in FreeBSD 2.0?
Date: 7 Dec 1994 00:26:04 GMT
Organization: University of Tasmania, Australia.
Lines: 68
Message-ID: <3c2ves$so4@franklin.cc.utas.edu.au>
References: <D0488r.1G3@nfx.com> <3bl7v9$s6c@pdq.coe.montana.edu>
NNTP-Posting-Host: minke.iasos.utas.edu.au

nate@bsd.coe.montana.edu (Nate Williams) writes:

>In article <D0488r.1G3@nfx.com>, Chie-Jin Cheng <chiejin@nfx.com> wrote:
>>Hi there,
>>
>>Can someone tell me what is the status of SLIP and PPP in FreeBSD2.0?

>Don't know about PPP, but I use SLIP with no problems.

Don't know about SLIP but I use PPP with no problems :-) after applying
a couple of patches courtesy of Mark Starner:

1)
In the source for pppd (look in /usr/src/usr.sbin I think - anyway it is there
somewhere) change line 690 of the file sys-bsd.c to be:
mask = ((struct sockaddr_in *) &ifreq.ifr_addr)->sin_addr.s_addr;
                                   ^^^
 
 
You also need to rebuild the kernel with ppp support by enabling the
line:
 
pseudo-device   ppp     x
 
where x is the number of ppp interfaces you want... (1 like me if you just
use a single modem connection)
HOWEVER - before rebuilding the kernel make the following change
to the kernel code....

2)
there is also a fix required to /usr/src/sys/net/if_ppp.c in the kernel
 
that fix is:
*** 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);
 
 
 



>Nate
>-- 
>nate@bsd.coe.montana.edu     |  FreeBSD dude and all around tech.
>nate@cs.montana.edu          |  weenie.
>work #: (406) 994-4836       |  Unemployed, looking for permanant work in
>home #: (406) 586-0579       |  CS/EE field.

__________________________________________________________________________
Dr. Tas van Ommen
Glaciology Section
Australian Antarctic Division & Antarctic CRC
        	
Antarctic CRC                 E-mail: tas.vanommen@antcrc.utas.edu.au
University of Tasmania        Phone:         (002) 20 2981
GPO Box 252C, Hobart          Fax:           (002) 20 2902
Tasmania 7001, AUSTRALIA      International: (+61-02) 20 2981
__________________________________________________________________________