From owner-freebsd-current Wed Sep 10 22:41:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA28611 for current-outgoing; Wed, 10 Sep 1997 22:41:05 -0700 (PDT) Received: from sendero-ppp.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id WAA28606 for ; Wed, 10 Sep 1997 22:41:03 -0700 (PDT) Received: (qmail 8991 invoked by uid 1000); 11 Sep 1997 05:41:24 -0000 Message-ID: X-Mailer: XFMail 1.2-alpha [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199709110456.OAA06582@word.smith.net.au> Date: Wed, 10 Sep 1997 22:41:24 -0700 (PDT) Organization: Atlas Telecom From: Simon Shapiro To: Mike Smith Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ? Cc: Terry Lambert , current@freebsd.org, nnd@itfs.nsk.su Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Mike Smith; On 11-Sep-97 you wrote: > > > > The solution is very simple; Upon open, you open anyway, ignoring but > > remembering DCD. If you get a change of state from inactive to active, > > you > > change the state, but ignore it. However, if the state transitions > > from > > ACTIVE to INACTIVE, you terminate the connection, close the port and > > generate SIGHUP. This is the simplest and most correct way to handle > > it. > > This is how a callout device works, although SIGHUP is only delivered > if the port is the controlling tty of the process. Note, however, that > user-mode ppp _doesn't_want_this_, which is the whole issue. So the device works properly. Good. It took several YEARS for AT&T/USL/USG/etc. to get it streight. > It wants to poll for carrier status, hence CLOCAL. Must hve a good reason... --- Sincerely Yours, (Sent on 10-Sep-97, 22:39:42 by XF-Mail) Simon Shapiro Atlas Telecom Senior Architect 14355 SW Allen Blvd., Suite 130 Beaverton OR 97005 Shimon@i-Connect.Net Voice: 503.643.5559, Emergency: 503.799.2313