From owner-freebsd-questions Sat Jul 13 02:42:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA27910 for questions-outgoing; Sat, 13 Jul 1996 02:42:25 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA27893; Sat, 13 Jul 1996 02:41:43 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id TAA18861; Sat, 13 Jul 1996 19:37:29 +1000 Date: Sat, 13 Jul 1996 19:37:29 +1000 From: Bruce Evans Message-Id: <199607130937.TAA18861@godzilla.zeta.org.au> To: freebsd-hardware@FreeBSD.org, freebsd-isp@FreeBSD.org, freebsd-questions@FreeBSD.org, stefan@islandia.is Subject: Re: Problems with PPP and cyclades (Solved) Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >Thanks for that program Bruce, it showed us that dcd was still up even though >we had already hung up the line. Later I received a fix to modem.c in ppp: >>>I have experienced a similar problem. I solved it changing the CLOCAL flag >>>to HUPCL, in modem.c. >>> >>>diff modem.c ~wsj/src/ppp/modem.c >>>440c440 >>>< rstio.c_cflag = (CS8 | CREAD | CLOCAL | CCTS_OFLOW|CRTS_IFLOW); >>>--- >>>> rstio.c_cflag = (CS8 | CREAD | HUPCL | CCTS_OFLOW|CRTS_IFLOW); >>> >>>With this, the ppp program receives a SIGHUP when the modem lost the >>>carrier, and it terminates in the expected way. The CLOCAL probably doesn't matter, and HUPCL is only supposed to affect hangups at your end (it causes DTR to be dropped when the line is closed). This seems to be fixed in -current by setting HUPCL in some cases: if (!(mode & MODE_DEDICATED)) rstio.c_cflag |= HUPCL; 2.1R is also missing a `modemios = rstio;' statement. Bruce