From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,e0e6dfef58a0b40a,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,e0e6dfef58a0b40a,start X-Google-Attributes: gid1164f8,public X-Google-Thread: f9325,e0e6dfef58a0b40a,start X-Google-Attributes: gidf9325,public X-Google-ArrivalTime: 1994-08-14 12:20:55 PST Path: bga.com!news.sprintlink.net!hookup!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Newsgroups: comp.unix.ultrix,comp.sys.dec,comp.protocols.tcp-ip Subject: Arrggh, DEC your telnet is brain-damaged! Followup-To: comp.unix.ultrix Date: 14 Aug 1994 19:16:53 GMT Organization: Iowa State University, Ames, IA Distribution: world Message-ID: <32lqj5$93u@news.iastate.edu> NNTP-Posting-Host: tigger.cc.iastate.edu Summary: time wasted debugging my telnetd because your telnet sucks! Keywords: Telnet, Ultrix 4.3a, TSPEED option Xref: bga.com comp.unix.ultrix:2811 comp.sys.dec:5138 comp.protocols.tcp-ip:5059 If the terminal's baud rate is > 9600 baud, telnet sends -1,-1 as the input/output speeds in the terminal speed option sub-negotiation. Hint to those who happen to have source: just above the routine TerminalSpeeds() in sys_bsd.c, someone with clue shortage put: #ifndef B19200 # define B19200 B9600 #endif #ifndef B38400 # define B38400 B19200 #endif rather than, say: #ifndef B19200 # define B19200 EXTA #endif #ifndef B38400 # define B38400 EXTB #endif thus transforming the last few elements of the array "termspeeds" from: { 4800, B4800 }, { 9600, B9600 }, { 19200, B19200 }, { 38400, B38400 }, { -1, B38400 } to: { 4800, B4800 }, { 9600, B9600 }, { 19200, B9600 }, { 38400, B9600 }, { -1, B9600 } thus returning -1 for any speed > B9600. John -- John Hascall ``An ill-chosen word is the fool's messenger.'' Systems Software Engineer Project Vincent Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551