On 07/11/2018 05:02 AM, Uwe Kleine-König wrote:
Package: ser2net
Version: 2.10.1-1
Severity: normal
Hello,
I'm currently working on improving rfc2217-support in microcom and think
that ser2net behaves wrong in reply to microcom's improved behaviour.
Actually, I realized yesterday working on ser2net that this patch is wrong.
You need to add "remctl" to the configuration to enable rfc2217
processing. It is
off by default, but if you add that ser2net will send a WILL for this.
That's the
functions at the end of the line there doing that.
I probably need to do something about the "DO" being sent.
-corey
When I connect to ser2net and then "say":
IAC DO COM_PORT
(i.e. \xff \xfd \x2c) ser2net replies with
IAC WONT COM_PORT
(i.e. \xff \xfc \x2c) which is bogus because that's the purpose of
ser2net and it works just fine if I don't ask for it.
I didn't test, but I guess the fix is:
- { TN_OPT_COM_PORT, 1, 0, 0, 0, 0, 0,
+ { TN_OPT_COM_PORT, 1, 1, 0, 0, 0, 0,
in dataxfer.c.
You might also consider to initially send
IAC DO COM_PORT
IAC WILL COM_PORT
(and adapt telnet_cmds[] accordingly).
Best regards
Uwe
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (700, 'testing'), (600, 'unstable'), (500, 'unstable-debug'),
(500, 'stable'), (499, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ser2net depends on:
ii libc6 2.27-3
ii libwrap0 7.6.q-27
ser2net recommends no packages.
Versions of packages ser2net suggests:
ii telnet 0.17-41