Date: Thu, 11 Sep 1997 09:03:45 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: mike@smith.net.au (Mike Smith) Cc: Shimon@i-Connect.Net, tlambert@primenet.com, current@freebsd.org, nnd@itfs.nsk.su Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ? Message-ID: <199709110903.CAA11829@usr05.primenet.com> In-Reply-To: <199709110456.OAA06582@word.smith.net.au> from "Mike Smith" at Sep 11, 97 02:56:13 pm
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. Why doesn't user-nmode PPP want this? > It wants to poll for carrier status, hence CLOCAL. Even if it's a dial-*in* connection and it's acting as the PPP server? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709110903.CAA11829>