From: damian@centrix.demon.co.uk (damian)
Subject: Re: PPP on Ultrix, and interesting SLIP/PPP hacks
Date: Mon, 17 May 1993 00:04:46 +0000 [thread overview]
Message-ID: <9305170107.aa20908@post.demon.co.uk> (raw)
In-Reply-To: BDC.93May16151651@transit.ai.mit.edu
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 |
+----------------------------+------------------------------------------------+
next prev parent reply other threads:[~1993-05-17 0:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-05-16 14:02 PPP on Ultrix, and interesting SLIP/PPP hacks Michael Graff
1993-05-16 19:16 ` Brian D. Carlstrom
1993-05-17 0:04 ` damian [this message]
1993-05-23 18:33 ` Christoph Badura
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