From: john@iastate.edu (John Hascall)
Subject: Arrggh, DEC your telnet is brain-damaged!
Date: 14 Aug 1994 19:16:53 GMT [thread overview]
Message-ID: <32lqj5$93u@news.iastate.edu> (raw)
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
reply other threads:[~1994-08-14 19:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox