Date: Mon, 3 Apr 1995 11:15:41 EST5EDT From: "Andrew Webster" <awebster@dataradio.com> To: freebsd-questions@FreeBSD.org Subject: Re: SLIP-server + Notes on this Message-ID: <9504031508.AA15329@rf.dataradio.com>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9504031508.AA15329>