From owner-freebsd-questions Mon Apr 3 08:19:22 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA10987 for questions-outgoing; Mon, 3 Apr 1995 08:19:22 -0700 Received: from rf.dataradio.com (G496.InterLink.NET [198.168.61.62]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id IAA10981 for ; Mon, 3 Apr 1995 08:19:16 -0700 Received: from dri.UUCP by rf.dataradio.com (4.1/1.35) id AA15329; Mon, 3 Apr 95 11:08:58 EDT Message-Id: <9504031508.AA15329@rf.dataradio.com> Received: by dri (UUXFER v1.3c); Mon 03 Apr 1995 11:18:38 EDT From: "Andrew Webster" To: freebsd-questions@FreeBSD.org Date: Mon, 3 Apr 1995 11:15:41 EST5EDT Subject: Re: SLIP-server + Notes on this X-Confirm-Reading-To: "Andrew Webster" X-Pmrqc: 1 Priority: normal X-Mailer: Pegasus Mail v3.22 Sender: questions-owner@FreeBSD.org Precedence: bulk > Hi, > > I have set up a SLIP server and it's running quite well. But I in the > slip.login script I only execute the ifconfig command. How can I send some > string to the dialup-terminal. I use Winsock under MS-Windows to call in for > a SLIP-connection. But what command should i execute to sned a string to the > Winsock-client. I've tried echo 'line of text' > /dev/ttyd0 but this doesn't > seem to work. > > Help?! > > The bad news is that the tty device has been closed, and attached to the SLIP driver by the time you want to print something. You can log information to a file, but not to the screen. See the sliplogin.c source if you want to make changes. [Hint to developpers] One useful fix I'd like to see added is the local and remote IP addresses printed out to the terminal's console before slip starts. One VERY imporant thing that I uncovered when using SLIP connections is this: - The slip driver will auto-negotiate TCP header compression ON, but not OFF, thus causing lots of headaches for the unsuspecting user who is not using header compression, especially AFTER someone else did use it on the same SLIP interface. (ie: name server lookups work, but telnet doesn't). The reason of course is that TCP packets don't make it through the link, but UDP packets do. Do yourself a favor and add the -LINK0 option to your slip.logout file. As in: ifconfig $1 -LINK0 down. ----------------------------------------------------------------------- Andrew Webster Network Manager / Special Projects Dataradio Inc. 200-5500 Royalmount Ave. TEL: +1 514 737 0020 Town of Mount Royal, QC, CANADA H4P 1H7 FAX: +1 514 737 7883 http://www.dataradio.com Email: awebster@dataradio.com