From owner-freebsd-bugs Wed Sep 3 16:10:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA14318 for bugs-outgoing; Wed, 3 Sep 1997 16:10:40 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA14313 for ; Wed, 3 Sep 1997 16:10:25 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id JAA11206; Thu, 4 Sep 1997 09:00:39 +1000 Date: Thu, 4 Sep 1997 09:00:39 +1000 From: Bruce Evans Message-Id: <199709032300.JAA11206@godzilla.zeta.org.au> To: cfortin@ec.camitel.com, freebsd-bugs@FreeBSD.ORG Subject: Re: Bug with Cyclade serial board and TUN. Cc: support@cyclades.com Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >We have problem with the Cylcom 16Ye ISA serial board with DB25 boxe and TUN. >It work fine in the FreeBSD 2.2-GAMMA version. I don't know what was in 2.2-GAMMA - it wasn't tagged :-(. >But with 2.2.2 and 2.2-970618-RELENG it not work. >When I use the Cyclade in terminal mode, everything work fine. >When I use with pppd it work fine also. > >But when I use it with TUN, we have a proble,: >The first time, we can connect in TUN. >When I hangup, the modem also hangup but the ppp process stay active in memory. >When I retry to connect on the modem, the modem answer but never give the login >prompt. Because the process has not been killed by the hangup. The cy driver in early versions of 2.2 had buggy carrier detect handling, mainly involving CLOCAL mode. Apparently ppp depended on these bugs. CLOCAL mode prevents normal hangup processing (of killing the process group and returning end of file for subsequent reads). In terminal mode, CLOCAL is usually not set and processes get killed by hangups. Similarly for pppd in its default "modem" mode. OTOH, ppp sets CLOCAL and depends on polling the carrier status using TIOCMGET. This polling used to be broken. >I have aplied the latest CVS sup, the problem is still there. > >I think the problem is in the Cyclom driver. >... >If I want to run in TUN, I must replace the standard TUN by the > old 2.2-GAMMA TUN on my FreeBSD 2.2-970618-RELENG. I think the problem is in ppp :-). Bruce