Message-ID: <37F1AA06.92C15EA5@Wireless.Com>
From: Mike Cheponis <Mike@Wireless.Com>
X-Mailer: Mozilla 4.6 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: Re: Problem with telnet ?
References: <37E7DFF6.87E14F8C@Wireless.Com> <7sltlu$1hr5@enews4.newsguy.com> <37EFF0BE.6BB55569@Wireless.Com> <lc9qs7.ut6.ln@mega.am.cs.vu.nl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 74
Date: Tue, 28 Sep 1999 22:56:22 -0700
NNTP-Posting-Host: 209.185.76.24
X-Trace: news.ais.net 938584518 209.185.76.24 (Wed, 29 Sep 1999 00:55:18 CDT)
NNTP-Posting-Date: Wed, 29 Sep 1999 00:55:18 CDT
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.ecn.ou.edu!cyclone.i1.net!newsfeed.enteract.com!newsfeed.mathworks.com!nntp01.net-okbr01.exodus.net!nntp01.net-okbr01.exodus.net!news.ais.net!not-for-mail

Thanks very much! This patch did indeed fix the Control-C (Urgent data present)
problem.  Sorry for not putting in the error code at first.

It brings the next question I've been asking: besides the VM and other related
issues, what's really different between 2.0.2 and minix_vmd?  I'd be happy with
pointers to web pages.  From what I can tell, minix_vmd diverged from minix_1.5
somewhere along the line to minix 2.0, and added VM, ability to run X, ports of GNU
utils, etc.  Minix 2.0 went for more POSIX compatibility.

Bottom line question: what's missing from minix_vmd that's in Minix 2.0.2 ?

Thanks again, -Mike


Kees J Bot wrote:

> In article <37EFF0BE.6BB55569@Wireless.Com>,
> Mike Cheponis  <Mike@Wireless.Com> wrote:
> >It's definitely the case that if you telnet out of the Minix box to a
> >BSDi or NetBSD box and then type a Control-C, the connection closes.
>
> With an "Urgent data present" error?  (It helps mentioning any error
> messages...)
>
> >I'm the only one seeing this behavior, I guess...
>
> The problem is that telnet avoids using some newer features of the
> 2.0.2 TCP/IP server.  It has the code in its source, but its switched
> off with a '#if __minix_vmd'.  Below is quick patch that fixes it, and
> removes a message that would inform you that something unexpected is
> happening.  To apply the patch, type:
>
>         ! cd commands/telnet
>         ! patch < this-text-you-are-reading-now
>         ! make install
>
> --
> Kees J. Bot, Systems Programmer, Sciences dept., Vrije Universiteit Amsterdam
> Minix:       http://www.cs.vu.nl/pub/minix/   ftp://ftp.cs.vu.nl/pub/minix/
> Minix-vmd:   http://www.Minix-vmd.org/        ftp://ftp.Minix-vmd.org/
> _._. .._ _   ._ ._.. ___ _. __.   _ .... .   _.. ___ _ _ . _..   ._.. .. _. .
> diff -c -r /home/kjb/minix/2.0.2/src/commands/telnet/ttn.c ./ttn.c
> *** /home/kjb/minix/2.0.2/src/commands/telnet/ttn.c     Thu Feb 12 20:16:54 1998
> --- ./ttn.c     Tue Sep 28 15:24:06 1999
> ***************
> *** 180,186 ****
>   char *buf;
>   unsigned len;
>   {
> ! #if __minix_vmd
>         nwio_tcpopt_t tcpopt;
>         int count;
>
> --- 180,186 ----
>   char *buf;
>   unsigned len;
>   {
> ! #if 1
>         nwio_tcpopt_t tcpopt;
>         int count;
>
> ***************
> *** 325,331 ****
> --- 325,333 ----
>         case IAC_NOP:
>                 break;
>         case IAC_DataMark:
> + #if 0
>   fprintf(stderr, "got a DataMark\r\n");
> + #endif
>                 break;
>         case IAC_BRK:
>   fprintf(stderr, "got a BRK\r\n");

