aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/telnetd.c5
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)
154 * Example: we get this from our own (bbox) telnet client: 154 * Example: we get this from our own (bbox) telnet client:
155 * read(5, "\377\374\1""\377\373\37""\377\372\37\0\262\0@\377\360""\377\375\1""\377\375\3"): 155 * read(5, "\377\374\1""\377\373\37""\377\372\37\0\262\0@\377\360""\377\375\1""\377\375\3"):
156 * IAC WONT ECHO, IAC WILL NAWS, IAC SB NAWS <cols> <rows> IAC SE, IAC DO SGA 156 * IAC WONT ECHO, IAC WILL NAWS, IAC SB NAWS <cols> <rows> IAC SE, IAC DO SGA
157 * Another example (telnet-0.17 from old-netkit):
158 * read(4, "\377\375\3""\377\373\30""\377\373\37""\377\373 ""\377\373!""\377\373\"""\377\373'"
159 * "\377\375\5""\377\373#""\377\374\1""\377\372\37\0\257\0I\377\360""\377\375\1"):
160 * IAC DO SGA, IAC WILL TTYPE, IAC WILL NAWS, IAC WILL TSPEED, IAC WILL LFLOW, IAC WILL LINEMODE, IAC WILL NEW_ENVIRON,
161 * IAC DO STATUS, IAC WILL XDISPLOC, IAC WONT ECHO, IAC SB NAWS <cols> <rows> IAC SE, IAC DO ECHO
157 */ 162 */
158 if (wr <= 1) { 163 if (wr <= 1) {
159 /* Only the single IAC byte is in the buffer, eat it 164 /* Only the single IAC byte is in the buffer, eat it