LINUX.ORG.RU

Флаги telnet не соответствуют документации

 


0

1
                crlf          If this is TRUE, then carriage returns will be
                              sent as <CR><LF>.  If this is FALSE, then car‐
                              riage returns will be send as <CR><NUL>.  The
                              initial value for this toggle is FALSE.
alex@alex-VirtualBox:~$ telnet 192.168.1.79 5000
Trying 192.168.1.79...
Connected to 192.168.1.79.
Escape character is '^]'.
($NAM+CALL?)
^]

telnet> quit
Connection closed.
→ New connection.  There are 1 connections now
SRV <<] CLN:28 24 4E 41 4D 2B 43 41 4C 4C 3F 29 0D 0A 
← Lost connection. There are 0 connections now
alex@alex-VirtualBox:~$ uname -a
Linux alex-VirtualBox 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:27 UTC 2016 i686 i686 i686 GNU/Linux

Ответ на: комментарий от Deleted

Судя по всему оно вообще игнорит эту опцию и всегда отправляет 0Д 0А:

alex@alex-VirtualBox:~$ telnet 192.168.1.79 5000
Trying 192.168.1.79...
Connected to 192.168.1.79.
Escape character is '^]'.
^]

telnet> toggle crlf
Will send carriage returns as telnet <CR><LF>.
($NAM+CALL?)
^]

telnet> toggle crlf
Will send carriage returns as telnet <CR><NUL>.
($NAM+CALL?)
^]

telnet> quit
Connection closed.

→ New connection.  There are 1 connections now
SRV <<] CLN:28 24 4E 41 4D 2B 43 41 4C 4C 3F 29 0D 0A 
SRV <<] CLN:28 24 4E 41 4D 2B 43 41 4C 4C 3F 29 0D 0A 
← Lost connection. There are 0 connections now

someoneelsenotme
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.