From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107112,6300b7bfbc2a4a7c X-Google-Attributes: gid107112,public X-Google-Thread: 103eaf,6300b7bfbc2a4a7c X-Google-Attributes: gid103eaf,public X-Google-Thread: fee84,6300b7bfbc2a4a7c X-Google-Attributes: gidfee84,public From: Christian Worley Subject: Re: Slip doesn't work without a serial port in OSF/1; a tty/pty programming question Date: 1995/07/28 Message-ID: <3v9eco$1fn@news.xmission.com>#1/1 X-Deja-AN: 107033277 references: <3v3iou$jca@news.xmission.com> content-type: text/plain; charset=us-ascii organization: XMission Internet (801 539 0900) x-url: news:3v3iou$jca@news.xmission.com mime-version: 1.0 newsgroups: comp.unix.osf.osf1,comp.terminals,comp.protocols.ppp x-mailer: Mozilla 1.1N (X11; I; OSF1 V2.0 alpha) 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