Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
telnet: make rfc2217 handling more correct
This implements several things that were missing before: - Send initial DO and WILL for COM_PORT option. - Handle a IAC IAC sequence as single in-band '\xff'. - Reply WILL/DO for non-COM_PORT options with DONT/WONT. - Stop interpreting escape sequences at their end. - Add necessary bound checks. This closes #5. It's still not optimal though. Missing bits include for example: - tracking of WILL/WONT/DO/DONT - Only start with COM_PORT subnegotiation once the other side acked. Signed-off-by: Uwe Kleine-König <[email protected]>
- Loading branch information