From owner-freebsd-questions Tue Jun 24 07:13:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA16286 for questions-outgoing; Tue, 24 Jun 1997 07:13:51 -0700 (PDT) Received: from host.accessin.com.au (root@host.accessin.com.au [203.24.23.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA16267 for ; Tue, 24 Jun 1997 07:13:11 -0700 (PDT) Received: from thampana.abseil.com.au (betagate.abseil.com.au [203.56.243.1]) by host.accessin.com.au (8.8.5/8.6.12) with ESMTP id WAA13461; Tue, 24 Jun 1997 22:19:16 +0800 (WST) Received: from dingo.abseil.com.au (dingo.abseil.com.au [203.56.243.97]) by thampana.abseil.com.au (8.8.3/8.8.3) with SMTP id WAA16688; Tue, 24 Jun 1997 22:22:57 +0800 (WST) Received: by dingo.abseil.com.au with Microsoft Mail id <01BC80ED.0C453D40@dingo.abseil.com.au>; Tue, 24 Jun 1997 22:22:06 +0800 Message-ID: <01BC80ED.0C453D40@dingo.abseil.com.au> From: Greg Laslett To: "'Wes Peters'" Cc: "'questions@freebsd.org'" Subject: RE: Mapping a Virtual Serial device to a Terminal server port to behave like a real serial port Date: Tue, 24 Jun 1997 22:22:04 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Subject: Mapping a Virtual Serial device to a Terminal server port to behave like a real serial port Wes Peters writes: > I need pretty much the same behavior. I have a box with some modems > and an ethernet somewhere on the LAN. I need to be able to provide > a pseudo-driver on a FreeBSD system that can connect to one of the > modems over the network and behave like a tty on the UNIX system. > I've looked at ptys, but don't yet grok how I would get ioctls for baud rate, > &c. through the pty interface. Going the other way would suit me just as well. An open on /dev/stream0/tserver.foo.com/2005 would set up a connection to tserver.foo.com on port 2005 which the listener on the terminal server could map to a serial port. If done right this device could live in places like /etc/ttys or /etc/ppp/ppp.conf Baud/Parity etc setting might be a bit much of an ask though. We would really need something like LAT instead of just socket/stream/telnet like behaviour. Terminal servers are pretty good at sorting port stuff out in any case. Greg Laslett. greg@abseil.com.au