Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 1998 03:59:17 -0700 (PDT)
From:      Craig Leres <leres@ee.lbl.gov>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        leres@ee.lbl.gov
Subject:   bin/7280: getty should support 230400 baud
Message-ID:  <199807141059.DAA09844@fun.ee.lbl.gov>

next in thread | raw e-mail | index | archive | help

>Number:         7280
>Category:       bin
>Synopsis:       getty should support 230400 baud
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 14 04:00:01 PDT 1998
>Last-Modified:
>Originator:     Craig Leres
>Organization:
Lawrence Berkeley National Laboratory
>Release:        FreeBSD 3.0-980414-SNAP i386
>Environment:

	I'm using a Courier I-Modem with a RocketPort async mux
	card at 230.4 to serve inbound 56K/V.90 dialup connections.

>Description:

	Getty is missing the speed table entry for 230400 baud.

>How-To-Repeat:

	Add the following to /etc/gettytab:

	    std.230400|230400-baud:\ 
		    :np:sp#230400:

	then setup a port to use it and notice it doesn't work.
	(Examination of the code suggests the port is getting set
	to 300 baud.)

>Fix:
	
	A context diff to libexec/getty/subr.c is appended.

	Note that it might be worth adding a std.230400 entry to
	the default /etc/gettytab.

*** /tmp/,RCSt1jh9768	Tue Jul 14 03:43:36 1998
--- subr.c	Tue Jul 14 03:38:34 1998
***************
*** 704,709 ****
--- 704,710 ----
  	{ 7200,	EXTB },		/* alternative */
  	{ 57600, B57600 },
  	{ 115200, B115200 },
+ 	{ 230400, B230400 },
  	{ 0 }
  };
  
***************
*** 713,719 ****
  {
  	register struct speedtab *sp;
  
! 	if (val <= B115200)
  		return (val);
  
  	for (sp = speedtab; sp->speed; sp++)
--- 714,720 ----
  {
  	register struct speedtab *sp;
  
! 	if (val <= B230400)
  		return (val);
  
  	for (sp = speedtab; sp->speed; sp++)
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807141059.DAA09844>