From f528e4bb2a9caef97ed099f62bfebe7b474b1122 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Thu, 17 Jan 2019 15:49:44 +0100 Subject: [PATCH] Fix TELNET to interoperate with buggy servers. Here is the patch to get telnet to talk to a modern telnetd. This weekend I will finish adding DHCP to IMP and doing some more cleanup on code. The basic change was to expand the telcmd to several calls to remove the flush at the end of the macro. Modern telnetd seems to want WONT/DONT commands not to span packets. --- src/sysnet/{telnet.752 => telnet.753} | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename src/sysnet/{telnet.752 => telnet.753} (99%) diff --git a/src/sysnet/telnet.752 b/src/sysnet/telnet.753 similarity index 99% rename from src/sysnet/telnet.752 rename to src/sysnet/telnet.753 index 4dd4fa4d..92b10b63 100755 --- a/src/sysnet/telnet.752 +++ b/src/sysnet/telnet.753 @@ -910,7 +910,10 @@ iacsr0: call ntic ; get command character .lose %lssys ; oops! telcmf [IAC SE] jrst ntimpg] ; all done - telcmd [IAC DONT] ; refuse to accept this option + movei nt,IAC ; refuse to accept this option + call ntout + movei nt,DONT + call ntout call ntosnd ; send what I refuse call ntofrc ; and send it out jrst ntimpg] ; and continue @@ -963,7 +966,10 @@ iacsr0: call ntic ; get command character telcmf [IAC WILL TRNBIN] jrst ntimpg] ; no, random, win anyway - telcmd [IAC WONT] ; well, I won't do it! + movei nt,IAC ; well, I won't do it! + call ntout + movei nt,WONT + call ntout call ntosnd ; so there. call ntofrc ; and force it out jrst ntimpg] ; and continue