mirror of
https://github.com/PDP-10/its.git
synced 2026-02-01 22:42:26 +00:00
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.
This commit is contained in:
committed by
Lars Brinkhoff
parent
b352fecb6b
commit
f528e4bb2a
@@ -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
|
||||
Reference in New Issue
Block a user