[Bug 2565] High baud rate gets sent, solaris closes pty
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Wed Aug 3 18:56:19 AEST 2016
https://bugzilla.mindrot.org/show_bug.cgi?id=2565
Tomas Kuthan <tomas.kuthan at oracle.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |MOVED
--- Comment #7 from Tomas Kuthan <tomas.kuthan at oracle.com> ---
On Solaris, 16 original baud rates B0 through B38400 were represented
in the four least significant bits of termios.c_cflag. When additional
baud rates were added back in 1994, the adjacent bits were already
assigned for a different purpose, so bits 22 and 23 were used to flag
extended baudrates. Baud rates B57600 through B460800 were again
represented in the least significant bits with the extension bit set.
All the speed handling code was updated to take the extension bits into
account.
... all the code, but this one if, that was left behind. B57600 is
encoded with the extension bit set and with the 4 least significant
bits all zeros. The neglected if has mistaken B57600 for B0. B0 means
'hang up'; hung up it did.
I am closing the bug as not-an-OpenSSH-bug. (Feel free to change the
substatus.)
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list