From: Christian Worley <cworley@altatech.com>
Subject: Re: Slip doesn't work without a serial port in OSF/1; a tty/pty programming question
Date: 1995/07/28 [thread overview]
Message-ID: <3v9eco$1fn@news.xmission.com> (raw)
In-Reply-To: 3v3iou$jca@news.xmission.com
The problem is OSF/1 specific. A DEC network Guru read the post
and told me of the problem.
Basically, you can't switch line disciplines on a pty device (that's
close enough to the truth, without a long explanation).
It can be faked by creating a device driver with an ioctl
that contains two entry points. The first must be called
before the line discipline is switched. It should execute
the following code:
linesw[SLIPDISC].l_rint = ttyinput;
Where SLIPDISC is the index for the discipline to be used. You may need
to define ttyinput as an external function.
Then, switch disciplines. Afterwords, set the linesw table back
to the appropriate entry with your other ioctl entry:
linesw[SLIPDISC].l_rint = slinput;
This may not work for all disciplines; there must be a reason
why DEC put that code there; but, it worked for slip!!
Chris
prev parent reply other threads:[~1995-07-28 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-25 4:00 Slip doesn't work without a serial port in OSF/1; a tty/pty programming question Christian Worley
1995-07-26 4:00 ` Charles M Richmond
1995-07-27 4:00 ` Ross Alexander
1995-07-28 4:00 ` Christian Worley [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox