Lines Matching refs:IAC
122 put_iac(6, IAC,DONT,TELOPT_ECHO,IAC,DONT, TELOPT_SGA); in handle_esc()
132 put_iac(6, IAC,DO,TELOPT_ECHO,IAC,DO,TELOPT_SGA); in handle_esc()
167 put_iac(4, IAC,SB,TELOPT_TTYPE,TELQUAL_IS); in handle_negotiations()
169 put_iac(2, IAC,SE); in handle_negotiations()
186 if (ddww == DO) put_iac(3, IAC,WONT,TELOPT_ECHO); in handle_ddww()
192 (TT.flags & UF_ECHO)? put_iac(3, IAC,DO,TELOPT_ECHO) : in handle_ddww()
193 put_iac(3, IAC,DONT,TELOPT_ECHO); in handle_ddww()
203 (TT.flags & UF_SGA)? put_iac(3, IAC,DO,TELOPT_SGA) : in handle_ddww()
204 put_iac(3, IAC,DONT,TELOPT_SGA); in handle_ddww()
208 (TT.ttype)? put_iac(3, IAC,WILL,TELOPT_TTYPE): in handle_ddww()
209 put_iac(3, IAC,WONT,TELOPT_TTYPE); in handle_ddww()
213 put_iac(3, IAC,WILL,TELOPT_NAWS); in handle_ddww()
214 put_iac(9, IAC,SB,TELOPT_NAWS,(TT.win_width >> 8) & 0xff, in handle_ddww()
216 TT.win_height & 0xff,IAC,SE); in handle_ddww()
220 if(ddww == WILL) put_iac(3, IAC,DONT,opt); in handle_ddww()
221 if(ddww == DO) put_iac(3, IAC,WONT,opt); in handle_ddww()
238 if (curr == IAC) { in read_server()
281 if (*c == IAC) toybuf[i++] = *c; /* IAC -> IAC IAC */ in write_server()