home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / dec20 / k20mit.tac < prev    next >
Text File  |  2020-01-01  |  2KB  |  44 lines

  1. 10-Apr-85 02:38:32-EST,1551;000000000001
  2. Return-Path: <@COLUMBIA-20.ARPA:MRC@SIMTEL20.ARPA>
  3. Received: from COLUMBIA-20.ARPA by CU20B.ARPA with TCP; Wed 10 Apr 85 02:38:26-EST
  4. Received: from SU-SCORE.ARPA by COLUMBIA-20.ARPA with TCP; Wed 10 Apr 85 02:38:46-EST
  5. Received: from SIMTEL20.ARPA by SU-SCORE.ARPA with TCP; Tue 9 Apr 85 23:29:11-PST
  6. Date: Wed 10 Apr 85 00:28:55-MST
  7. From: Mark Crispin <MRC@SIMTEL20.ARPA>
  8. Subject: IAC doubling: the saga continues
  9. To: TOPS-20@SU-SCORE.ARPA
  10.  
  11.      There have been several messages about a correct
  12. implementation of IAC doubling on TVT's to prevent a binary '377
  13. character being output causing spurious interpretation of network
  14. protocol.  Unfortunately, none of the previously published
  15. patches are perfect.  Typically, the problems are paths which can
  16. cause a non-doubled '377 to go through or paths which could cause
  17. many '377s to go through.
  18.  
  19.      This solution seems to resolve these problems.
  20.  
  21.      In TTYSRV, rewrite TCOU6 to look like:
  22.  
  23. TCOU6:    CAIE T1,377        ;OUTPUT BYTE = IAC?
  24.      JRST TCOU6B
  25.     TDCALL D,<<TV,TCOU6A>>    ;YES, DO TCOU6A TWICE IF A TVT
  26.     JRST TCOU6B
  27.  
  28. TCOU6A:    SAVEAC <T1,T2>
  29. TCOU6B:    LOAD 3,TOMAX,(2)    ;CAPACITY OF OUTPUT BUFFERS
  30.     ...etc...
  31.  
  32.      At TCOU5-1, replace JRST TCOU3 with JRST TCOU6B
  33.  
  34.      In TTANDV, rewrite TCOBN to look like:
  35.  
  36. TCOBN:    SAVELN            ;SAVE LINE NUMBER
  37.     TXZE T1,.LHALF        ;WANTS IT LITERALLY?
  38.      JRST TCOU6B        ;YES, NO IAC DOUBLING PLEASE
  39.     ANDI T1,377        ;8 BITS OF CHARACTER
  40.     CALL TCOU6        ;GO OUTPUT THE CHARACTER WITHOUT ADDING
  41.                 ; PARITY OR DOING LINKS
  42.     RET            ;RETURN
  43. -------
  44.