Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 1996 19:27:47 -0500 (CDT)
From:      David Kelly <dkelly@hiwaay.net>
To:        (Hans Zuidam) <hans@brandinnovators.com>
Cc:        John Perry <perry@alpha.jpunix.com>, freebsd-hackers@freebsd.org
Subject:   RE: SLIP and ptys
Message-ID:  <XFMail.960924193301.dkelly@hiwaay.net>
In-Reply-To: <199609241502.RAA08319@truk.brandinnovators.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 22:02:45 hans@brandinnovators.com wrote:
>>Hi,
>
>I'm experimenting with TCP/IP and for testing I thought of the
>following setup:
>
>
>     n-freebsd         +------+         n-test
>    -----------o-------| push |-------o---------
>     ttypa       ptypa +------+ ptypb   ttypb
>      (s)         (m)            (m)     (s)
>
>i.e. I use two pty's each configured as SLIP interfaces (slattach)
>in the ttyp[ab] side.  On the pty[ab] side I have a simple process
>which select()'s on both ptys for data and pushing it to the opposite
>one.  This works with ping and telnet, but ftp is giving trouble.
>After a while data stops flowing and nothing happens.  I would be
>grateful for any ideas.

I'd be interested also too. A couple of weeks ago when I last tried
it, I couldn't get slattach to run on a PTY at all. It barfed on
TIOCSCTTY or some such. Maybe I was running it on the wrong side
of a pty pair? Quite likely.

Anyhow, the above setup is similar to what I was attempting to
establish a connection between the kernel and an amateur radio
TCP/IP stack known as TNOS <http://www.lantz.com>. Got tired trying
to make it work so I routed slattach out /dev/ttyd5 and in TNOS
on /dev/ttyd4. So at least I know something is working now.

73,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.960924193301.dkelly>