From owner-freebsd-hackers Tue Sep 24 17:38:41 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA04873 for hackers-outgoing; Tue, 24 Sep 1996 17:38:41 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA04817 for ; Tue, 24 Sep 1996 17:38:30 -0700 (PDT) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id RAA06436 for ; Tue, 24 Sep 1996 17:38:28 -0700 (PDT) Received: from nexgen.n4hhe.ampr.org by agora.rdrop.com with smtp (Smail3.1.29.1 #17) id m0v5hyp-0008zSC; Tue, 24 Sep 96 17:37 PDT Received: (from dkelly@localhost) by nexgen.n4hhe.ampr.org (8.7.5/8.6.12) id TAA20942; Tue, 24 Sep 1996 19:33:01 -0500 (CDT) Message-ID: X-Mailer: XFMail 0.5-alpha [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199609241502.RAA08319@truk.brandinnovators.com> Date: Tue, 24 Sep 1996 19:27:47 -0500 (CDT) Organization: Amateur Radio N4HHE, Madison, AL. From: David Kelly To: (Hans Zuidam) Subject: RE: SLIP and ptys Cc: John Perry , freebsd-hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 . 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,