From owner-freebsd-questions Wed Aug 27 17:52:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA22346 for questions-outgoing; Wed, 27 Aug 1997 17:52:58 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA22248 for ; Wed, 27 Aug 1997 17:51:02 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id BAA03443; Thu, 28 Aug 1997 01:45:33 +0100 (BST) Message-Id: <199708280045.BAA03443@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Scott Johnson cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD doesn't see the phone line drop. Help! In-reply-to: Your message of "Wed, 27 Aug 1997 16:20:01 PDT." <3.0.2.32.19970827162001.00caa740@mail.jps.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Aug 1997 01:45:32 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Hi, > > I've got a FreeBSD 2.1.0 setup that is routing traffic to/from my home LAN > to my ISP. > > Pac Bell has had muddier than usual lines, and it's causing the modem to > give up and hang up. > > Problem is, iijppp isn't seeing DCD go low. I have the comstate program > that Bruce Evans > posted (thanks, BTW) and it shows DCD toggling from low to high on carrier > detect, and > toggling back to low when the line goes bad (some well-placed whistling > into a phone causes > this for testing purposes) > > Problem is, iijppp just goes on merrily stuffing packets down the bad > interface and doesn't > acknowledge that the connection is gone-- so you have to go in and manually > close the connection. > The logfile shows bunches of HDLC errors when this is happening. > > -----begin----- > $ telnet localhost 3000 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > User Process PPP. Written by Toshiharu OHNO. > Working in auto mode. > PPP ON kauai> > > # thinks the line is still up> > > PPP ON kauai> close > ppp ON kauai> > > # > -----end----- > > So, am I assuming anything wrong? Should it work this way? I'd *like* a > redial > to occur if the line craps out-- or at least have it acknowledge it so I > don't have > to go and pull it down myself. > > Here's the stty for the modem port: > -----begin----- > 1-# stty -a -f /dev/cuaa1 > speed 9600 baud; 0 rows; 0 columns; > lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl > -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin > -nokerninfo -extproc > iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk > -brkint -inpck -ignpar -parmrk > oflags: -opost -onlcr -oxtabs > cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow > -dtrflow -mdmbuf > cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; > eol2 = ; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; > min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ; > stop = ^S; susp = ^Z; time = 0; werase = ^W; > -----end----- > You could try getting the latest version of ppp from http://www.freebsd.org/~brian. Drop me a line if you're still having problems. -- Brian , Don't _EVER_ lose your sense of humour....