*BSD News Article 16148


Return to BSD News archive

Xref: sserve comp.os.386bsd.development:755 comp.sys.dec:13146
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!uunet!pipex!bnr.co.uk!demon!centrix.demon.co.uk!damian
Newsgroups: comp.os.386bsd.development,comp.sys.dec
From: damian@centrix.demon.co.uk (damian)
Subject: Re: PPP on Ultrix, and interesting SLIP/PPP hacks
References: <explorer.737560955@tbird.cc.iastate.edu> <BDC.93May16151651@transit.ai.mit.edu>
Organization: Centrix
Date: Mon, 17 May 1993 00:04:46 +0000
Message-ID: <9305170107.aa20908@post.demon.co.uk>
Sender: usenet@demon.co.uk
Lines: 47

In article <BDC.93May16151651@transit.ai.mit.edu> bdc@ai.mit.edu (Brian D. Carlstrom) writes:
>In article <explorer.737560955@tbird.cc.iastate.edu> explorer@iastate.edu (Michael Graff) writes:
>
>   I also have need to make (1) slip or (2) ppp run through a pty.  Why?  We have
>   all our modems connected to terminal servers.  I was planning on something
>   like this:
>
>the BSD4.3 code thinks you can't run slip through a pty.
>this apparently is not true, according to a local wizard.
>its a one line fix to make the switch to SLIPDISC to work...
>not sure exactlyy, but i think this would be in tty_pty.c

Yes it definately does work. I have done it for exactly the same reason.
Here is a dirty hack to /sys/kern/tty_pty.c . It turns off all line
discipline checking. I'm sure a kernel guru could come up with the
correct hack^H^H^H^Hpatch.

*** tty_pty.c.orig	Mon May 17 00:59:29 1993
--- tty_pty.c	Sun Apr 11 18:32:06 1993
***************
*** 663,668 ****
--- 663,669 ----
  	 * the queues.  We can't tell anything about the discipline
  	 * from here...
  	 */
+ #ifdef NOTUSED
  	if (linesw[tp->t_line].l_rint != ttyinput) {
  		(*linesw[tp->t_line].l_close)(tp, flag);
  		tp->t_line = TTYDISC;
***************
*** 669,674 ****
--- 670,676 ----
  		(void)(*linesw[tp->t_line].l_open)(dev, tp, flag);
  		error = ENOTTY;
  	}
+ #endif
  	if (error < 0) {
  		if (pti->pt_flags & PF_UCNTL &&
  		    (cmd & ~0xff) == UIOCCMD(0)) {

Damian
-- 
+----------------------------+------------------------------------------------+
| Damian Ivereigh            | If you can't suss out what this is replying to |
| damian@centrix.demon.co.uk | get a threaded news reader, like trn. :-)      |
| Twickenham, U.K.           | This is the best way to cut wasted traffic     |
+----------------------------+------------------------------------------------+