*BSD News Article 59619


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!news.syd.connect.com.au!gidora.kralizec.net.au!not-for-mail
From: bde@zeta.org.au (Bruce Evans)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Strange login behavior
Date: 15 Jan 1996 02:44:18 +1100
Organization: Kralizec Dialup Unix
Lines: 48
Message-ID: <4db8ci$9q2@godzilla.zeta.org.au>
References: <4d7f48$io@jennifer.pernet.net>
NNTP-Posting-Host: godzilla.zeta.org.au

In article <4d7f48$io@jennifer.pernet.net>,
Neal Rigney <neal@jennifer.pernet.net> wrote:
>We've just recently installed 2.1 here acting as a terminal server.
>It's got 2 Cyclades cy16's in it for a total of 32 ports.  So far 
>we have only one problem.  Occasionally the machine will not allow
>logins(or more to the point _something_ won't).  It will print everything
>up to "login:".  Then it hangs up/closes connection.  Nothing is logged

Try this fix:
*** cy.c	1995/10/11 02:42:42	1.7.4.2
--- cy.c	1995/12/22 18:41:02
***************
*** 1700,1707 ****
  		(void)commctl(com, TIOCM_DTR, DMBIS);
  
! 	cd_outb(iobase, CD1400_RBPR, idivisor);
! 	cd_outb(iobase, CD1400_RCOR, iprescaler);
! 	cd_outb(iobase, CD1400_TBPR, odivisor);
! 	cd_outb(iobase, CD1400_TCOR, oprescaler);
  
  	/*
--- 1736,1747 ----
  		(void)commctl(com, TIOCM_DTR, DMBIS);
  
! 	if (idivisor != 0) {
! 		cd_outb(iobase, CD1400_RBPR, idivisor);
! 		cd_outb(iobase, CD1400_RCOR, iprescaler);
! 	}
! 	if (odivisor != 0) {
! 		cd_outb(iobase, CD1400_TBPR, odivisor);
! 		cd_outb(iobase, CD1400_TCOR, oprescaler);
! 	}
  
  	/*

>at the time of disconnection.  I do, however have an occasinaly note in
>the syslogs from pppd.  It always comes in groups of two, and always
>says this:
>
>fcntl(F_SETFL, fdflags): Inappropriate ioctl for device
>ioctl(TIOCSETD): Inappropriate ioctl for device
>tcsetattr: Inappropriate ioctl for device

This is probably a different problem, perhaps in pppd.  The fcntl() call
doesn't go anywhere near the serial driver, so pppd is apparently using
a wrong file descriptor.
-- 
Bruce Evans  bde@zeta.org.au