Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Arrggh, DEC your telnet is brain-damaged!
@ 1994-08-14 19:16 John Hascall
  0 siblings, 0 replies; only message in thread
From: John Hascall @ 1994-08-14 19:16 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-08-14 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-14 19:16 Arrggh, DEC your telnet is brain-damaged! John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox