Date: Thu, 11 Sep 1997 14:56:13 +1000
From: Mike Smith <mike@smith.net.au>
To: Simon Shapiro <Shimon@i-Connect.Net>
Cc: Terry Lambert <tlambert@primenet.com>, current@freebsd.org, nnd@itfs.nsk.su
Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ?
Message-ID: <199709110456.OAA06582@word.smith.net.au>
In-Reply-To: Your message of "Wed, 10 Sep 1997 21:35:23 MST." <XFMail.970910213523.Shimon@i-Connect.Net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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. It wants to poll for carrier status, hence CLOCAL. mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709110456.OAA06582>
