diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-12 20:09:22 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-12 20:09:22 +0200 |
commit | 26d88d6bbda628f0005115bbe0f85722db267793 (patch) | |
tree | 8cf5c91cb5ae127ba9c600ba8eb17cc7af8c9e2b | |
parent | b6d421b635670939e4ec047543f84cb507e5fe9d (diff) | |
download | busybox-26d88d6bbda628f0005115bbe0f85722db267793.tar.gz |
telnetd: add another handshake example in comments, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/telnetd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index eaaf29bce..1de3abcc7 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -154,6 +154,11 @@ safe_write_to_pty_decode_iac(struct tsession *ts) * Example: we get this from our own (bbox) telnet client: * read(5, "\377\374\1""\377\373\37""\377\372\37\0\262\0@\377\360""\377\375\1""\377\375\3"): * IAC WONT ECHO, IAC WILL NAWS, IAC SB NAWS <cols> <rows> IAC SE, IAC DO SGA + * Another example (telnet-0.17 from old-netkit): + * read(4, "\377\375\3""\377\373\30""\377\373\37""\377\373 ""\377\373!""\377\373\"""\377\373'" + * "\377\375\5""\377\373#""\377\374\1""\377\372\37\0\257\0I\377\360""\377\375\1"): + * IAC DO SGA, IAC WILL TTYPE, IAC WILL NAWS, IAC WILL TSPEED, IAC WILL LFLOW, IAC WILL LINEMODE, IAC WILL NEW_ENVIRON, + * IAC DO STATUS, IAC WILL XDISPLOC, IAC WONT ECHO, IAC SB NAWS <cols> <rows> IAC SE, IAC DO ECHO */ if (wr <= 1) { /* Only the single IAC byte is in the buffer, eat it |