Back out speed reducing to 38400 for old remote rlogind.

I do some digging out on this subject and found that remote
rlogind may reduce big speeds to 38400 by itself and (as more often
rlogind variant) speed setting ioctl fails, so speed left on 9600.
In all cases it doesn't do any real harm.
This commit is contained in:
Andrey A. Chernov 1995-08-03 23:54:49 +00:00
parent 633f0f7e27
commit a8729090ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9881

View File

@ -101,7 +101,7 @@ u_char escapechar = '~';
char *speeds[] = {
"0", "50", "75", "110", "134", "150", "200", "300", "600", "1200",
"1800", "2400", "4800", "9600", "19200", "38400"
"1800", "2400", "4800", "9600", "19200", "38400", "57600", "115200"
};
#ifdef OLDSUN
@ -262,8 +262,6 @@ main(argc, argv)
(void)strcpy(term, (p = getenv("TERM")) ? p : "network");
if (ioctl(0, TIOCGETP, &ttyb) == 0) {
(void)strcat(term, "/");
if (ttyb.sg_ospeed > EXTB)
ttyb.sg_ospeed = EXTB; /* 38400 */
(void)strcat(term, speeds[(int)ttyb.sg_ospeed]);
}