From owner-freebsd-bugs Tue Jul 14 04:00:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA19766 for freebsd-bugs-outgoing; Tue, 14 Jul 1998 04:00:39 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA19757 for ; Tue, 14 Jul 1998 04:00:38 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id EAA15088; Tue, 14 Jul 1998 04:00:02 -0700 (PDT) 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 ; 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 Reply-To: leres@ee.lbl.gov To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: leres@ee.lbl.gov X-Send-Pr-Version: 3.2 Subject: bin/7280: getty should support 230400 baud Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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