From leres@fun.ee.lbl.gov  Tue Jul 14 03:59:23 1998
Received: from fun.ee.lbl.gov (fun.ee.lbl.gov [131.243.1.81])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA18942
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jul 1998 03:59:22 -0700 (PDT)
          (envelope-from leres@fun.ee.lbl.gov)
Received: (from leres@localhost)
	by fun.ee.lbl.gov (8.9.1/8.9.1) id DAA09844;
	Tue, 14 Jul 1998 03:59:17 -0700 (PDT)
Message-Id: <199807141059.DAA09844@fun.ee.lbl.gov>
Date: Tue, 14 Jul 1998 03:59:17 -0700 (PDT)
From: Craig Leres <leres@ee.lbl.gov>
Reply-To: leres@ee.lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Cc: leres@ee.lbl.gov
Subject: getty should support 230400 baud
X-Send-Pr-Version: 3.2

>Number:         7280
>Category:       bin
>Synopsis:       getty should support 230400 baud
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 14 04:00:01 PDT 1998
>Closed-Date:    Tue Jul 21 22:58:48 PDT 1998
>Last-Modified:  Tue Jul 21 22:58:58 PDT 1998
>Originator:     Craig Leres
>Release:        FreeBSD 3.0-980414-SNAP i386
>Organization:
Lawrence Berkeley National Laboratory
>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++)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Tue Jul 21 22:58:48 PDT 1998 
State-Changed-Why:  
fixed, thanks! 
>Unformatted:
