DTR not enabled on dh driver when soft carrier flag set.

William L. Sebok wls at astrovax.UUCP
Tue Mar 6 07:49:33 AEST 1984


This bug may have been noted before but I am not sure when.  Also please note
the other bug in the handling of the soft carrier flag in the dh driver
reported by Lou Salkind (i.e. the line hangs up when Carrier is dropped even
though the soft carrier flag is set).

Index:	/sys/vaxuba/dh.c 4.2BSD

Description:
	If the soft carrier flag for a dh line is set (dhsoftCAR), data terminal
	ready (DTR) will never be set on open.  Thus, terminals (or modems)
	which require DTR will not work.
Repeat-By:
	Connect a terminal or modem which requires DTR to a line with modem
	control which has dhsoftCAR  set.  The device will not operate.
Fix:

*** dh.c.ORIG	Fri Jul 29 10:33:35 1983
--- dh.c	Thu Jan 26 02:21:49 1984
***************
*** 633,640
  	dm = unit >> 4;
  	tp = &dh11[unit];
  	unit &= 0xf;
! 	if (dm >= NDH || (ui = dminfo[dm]) == 0 || ui->ui_alive == 0 ||
! 	    (dhsoftCAR[dm]&(1<<unit))) {
  		tp->t_state |= TS_CARR_ON;
  		return;
  	}

--- 633,639 -----
  	dm = unit >> 4;
  	tp = &dh11[unit];
  	unit &= 0xf;
! 	if (dm >= NDH || (ui = dminfo[dm]) == 0 || ui->ui_alive == 0) {
  		tp->t_state |= TS_CARR_ON;
  		return;
  	}
***************
-- 
Bill Sebok			Princeton University, Astrophysics
{allegra,akgua,burl,cbosgd,decvax,ihnp4,kpno,princeton,vax135}!astrovax!wls



More information about the Comp.bugs.4bsd.ucb-fixes mailing list