From a8729090ed303fbb144278b59b5e2270cb21838d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 3 Aug 1995 23:54:49 +0000 Subject: 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. --- usr.bin/rlogin/rlogin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c index 5b943576b0df8..9de1daf3046c3 100644 --- a/usr.bin/rlogin/rlogin.c +++ b/usr.bin/rlogin/rlogin.c @@ -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]); } -- cgit v1.3