Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* PPP on Ultrix, and interesting SLIP/PPP hacks
@ 1993-05-16 14:02 Michael Graff
  1993-05-16 19:16 ` Brian D. Carlstrom
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Graff @ 1993-05-16 14:02 UTC (permalink / raw)



I'm not terriably interested in multiple loopbacks, but you did say something
which interests me:

Ultrix 4.x and 386bsd, in the same sentance!

I tried to port the ppp-1.2.tar package to Ultrix 4.2a, but all I discovered
is that I'm far to out of my league on this one.

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:

my machine (modem) --> (modem) term server (ethernet, telnet) -> Ultrix 4.2a

Or I need to pay for a dedicated line, which is not cheap.

--Michael
-- 
Michael Graff                 <explorer@iastate.edu>   Speaking for myself, not
Project Vincent               Voice: (515)294-4994     for ISU or the ISUCC
Iowa State Univ Comp Center   Fax:   (515)294-1717
Ames, IA  50011          -=*> PGP key on pgp-public-keys@pgp.iastate.edu <*=-


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP on Ultrix, and interesting SLIP/PPP hacks
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Brian D. Carlstrom @ 1993-05-16 19:16 UTC (permalink / raw)


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

any ideas? 

-bri

(btw-eichin@athena.mit.edu was the one who explained it to me.
     i'm currently hacking a bsd4.3 vax to dtrt. they have
     already shown it to work...)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP on Ultrix, and interesting SLIP/PPP hacks
  1993-05-16 19:16 ` Brian D. Carlstrom
@ 1993-05-17  0:04   ` damian
  1993-05-23 18:33     ` Christoph Badura
  0 siblings, 1 reply; 4+ messages in thread
From: damian @ 1993-05-17  0:04 UTC (permalink / raw)


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     |
+----------------------------+------------------------------------------------+


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP on Ultrix, and interesting SLIP/PPP hacks
  1993-05-17  0:04   ` damian
@ 1993-05-23 18:33     ` Christoph Badura
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Badura @ 1993-05-23 18:33 UTC (permalink / raw)


In <9305170107.aa20908@post.demon.co.uk> damian@centrix.demon.co.uk (damian) writes:

>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.

How about:

*** tty_pty.c.orig	Mon May 17 00:59:29 1993
--- tty_pty.c	Sun Apr 11 18:32:06 1993
***************
*** 663,668 ****
  	 * the queues.  We can't tell anything about the discipline
  	 * from here...
  	 */
-  	if (linesw[tp->t_line].l_rint != ttyinput) {
  		(*linesw[tp->t_line].l_close)(tp, flag);
  		tp->t_line = TTYDISC;
--- 663,669 ----
  	 * the queues.  We can't tell anything about the discipline
  	 * from here...
  	 */
+  	if (linesw[tp->t_line].l_rint != ttyinput
+  		|| linesw[tp->t_line].l_rint != slinput) {
  		(*linesw[tp->t_line].l_close)(tp, flag);
  		tp->t_line = TTYDISC;
-- 
				Christoph Badura  ---  bad@flatlin.ka.sub.org

Personally, I don't care whether someone is cool enough to quote Doug
Gwyn--I only care whether Doug Gwyn is cool enough to quote. -- Larry Wall


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1993-05-23 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1993-05-23 18:33     ` Christoph Badura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox