*BSD News Article 47454


Return to BSD News archive

#! rnews 1755 sserve.cc.adfa.oz.au
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!plug.news.pipex.net!pipex!tank.news.pipex.net!pipex!demon!jraynard.demon.co.uk!jraynard.demon.co.uk!not-for-mail
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Kermit can't access com port
Date: 19 Jul 1995 23:20:40 -0000
Organization: A FreeBSD box
Lines: 34
Message-ID: <3uk408$1bq@jraynard.demon.co.uk>
References: <3ujhtb$qpv@agate.berkeley.edu>
NNTP-Posting-Host: localhost
X-NNTP-Posting-Host: jraynard.demon.co.uk

In article <3ujhtb$qpv@agate.berkeley.edu>,
Geordan Rosario <cs61a-bf@anaconda.CS.Berkeley.EDU> wrote:
>
>I seem to be having trouble with kermit and FreeBSD 2.0.  If I try to SET LINE
>/dev/modem (linked to /dev/tty01) it tells me that it is locked.  I checked
>/var/spool/lock and nothing was there.  If I try SET LINE /dev/modem as root,
>it sits there until I hit ctrl-c, and then it works.

Try dialling out on /dev/cua01 - that should fix the problem.

>I'd really like to get kermit to work so I can automate slip logins.  (Aside,
>has anyone else out there had problems with ppp?  Mine starts to connect and
>then drops carrier.)

Have you applied the kernel patch? It's a one-liner that stops PPP dropping
carrier (if you're lucky) and crashing the kernel (if you're not).

In /usr/src/sys/net/if_ppp.c, insert the line marked with a '+' as line 435:

	    m_freem(m0);
	    return (ENOBUFS);
	}
+	m->m_len = 0;
	if (uio->uio_resid >= MCLBYTES / 2)
	    MCLGET(m, M_DONTWAIT);
	len = M_TRAILINGSPACE(m);

(without the plus sign, of course!), then rebuild your kernel.

Hope this helps,
James
-- 
Segmentation fault (core dumped): cannot find file '.signature'