Date: Thu, 11 Sep 1997 09:52:41 +0400 (MSD)
From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To: nnd@itfs.nsk.su
Cc: current@FreeBSD.ORG
Subject: Re: PPP - why set CLOCAL for server ('-direct' mode) ?
Message-ID: <Pine.BSF.3.96.970911095120.25969A-100000@lsd.relcom.eu.net>
In-Reply-To: <Pine.BSF.3.96.970911091443.523B-100000@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Does this fix work for you?
*** modem.c.bak Mon Sep 1 14:56:38 1997
--- modem.c Thu Sep 11 09:50:46 1997
***************
*** 498,513 ****
" cflag = %x\n", rstio.c_iflag, rstio.c_oflag, rstio.c_cflag);
cfmakeraw(&rstio);
if (VarCtsRts)
! rstio.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW;
! else {
! rstio.c_cflag |= CLOCAL;
rstio.c_iflag |= IXOFF;
- }
rstio.c_iflag |= IXON;
if (!(mode & MODE_DEDICATED))
rstio.c_cflag |= HUPCL;
if ((mode & MODE_DIRECT) == 0) {
!
/*
* If we are working as direct mode, don't change tty speed.
*/
--- 498,511 ----
" cflag = %x\n", rstio.c_iflag, rstio.c_oflag, rstio.c_cflag);
cfmakeraw(&rstio);
if (VarCtsRts)
! rstio.c_cflag |= CCTS_OFLOW | CRTS_IFLOW;
! else
rstio.c_iflag |= IXOFF;
rstio.c_iflag |= IXON;
if (!(mode & MODE_DEDICATED))
rstio.c_cflag |= HUPCL;
if ((mode & MODE_DIRECT) == 0) {
! rstio.c_cflag |= CLOCAL;
/*
* If we are working as direct mode, don't change tty speed.
*/
--
Andrey A. Chernov
<ache@null.net>
http://www.nagual.pp.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970911095120.25969A-100000>
