*BSD News Article 27457


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!bruce.cs.monash.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!cs.utexas.edu!asuvax!pitstop.mcd.mot.com!mcdphx!schbbs!mothost!delphinium.cig.mot.com!zeus!aztec!essenl
From: essenl@aztec.swindon.rtsg.mot.com (Lee Essen)
Newsgroups: comp.os.386bsd.questions
Subject: Re: NetBSD Dialup Ports
Date: 15 Feb 1994 12:07:26 GMT
Organization: Motorola Ltd., European Cellular Infrastructure Division
Lines: 38
Sender: essenl@aztec (Lee Essen)
Distribution: world
Message-ID: <2jqdtu$hjs@zeus.swindon.rtsg.mot.com>
References: <1994Feb13.171103.19049@sun490.fdu.edu>
NNTP-Posting-Host: aztec.swindon.rtsg.mot.com

In article <1994Feb13.171103.19049@sun490.fdu.edu>, brian@sun490.fdu.edu (Brian Domenick) writes:
|> 
|> 	I have been trying to get my tty01 comm port to work as a dialup line.
|> It functions perfectly for outgoing connections, but it doesn't seem to work 
|> as 8 bit clean for dialup.
|> 
|> 	I have installed a patch which I got off the net and the handshaking
|> seems to work better. The patch said to build a new kernal and recompile 
|> getty which I have done. I now have a tty01 and a cua01 but still no 8 bit
|> clean dialup. Does anyone have any suggestions for me on how to get a working
|> 8 bit clean dialup port? Do I have to make a new gettytab entry ?  I have 
|> made one for 38400 but I wasn't quite sure of what to put in there for parity
|> (since I want none) and how to tell it 8 bits.
|> 

I was annoyed by getting e-7-1 all the time, so after I installed -current
I hacked a file in /usr/src/libexec/getty.

ttydefaults.c...

        term.c_cflag = TTYDEF_CFLAG;

TTYDEF_CFLAG is set (in <sys/ttydefaults.h> to CREAD | CS7 | PARENB | HUPCL)

all I did (and it is a hack) was to change ttydefaults.c to...

	term.c_flag = CREAD | CS8 | HUPCL

...and rebuild getty. It's all worked fine for me!!

Lee.

-- 
MIS Technical Support		Email: essenl@aztec.swindon.rtsg.mot.com
Motorola Ltd			Phone: +44 793 545336
16 Euroway, Blagrove
Swindon, Wiltshire		Email: lee@esltd.demon.co.uk  (Home)
SN5 8YW