include/arpa/telnet.h
74
#define TELCMD_LAST IAC
lib/libtelnet/auth.c
287
static unsigned char str_request[64] = { IAC, SB,
lib/libtelnet/auth.c
306
*e++ = IAC;
lib/libtelnet/auth.c
328
static unsigned char str_none[] = { IAC, SB, TELOPT_AUTHENTICATION,
lib/libtelnet/auth.c
330
IAC, SE };
lib/libtelnet/auth.c
482
= { IAC, SB, TELOPT_AUTHENTICATION, TELQUAL_NAME, };
lib/libtelnet/auth.c
487
if ((*e++ = *cp++) == IAC)
lib/libtelnet/auth.c
488
*e++ = IAC;
lib/libtelnet/auth.c
492
*e++ = IAC;
lib/libtelnet/enc_des.c
146
fbp->fb_feed[0] = IAC;
lib/libtelnet/enc_des.c
217
if ((*p++ = fbp->temp_feed[x]) == IAC)
lib/libtelnet/enc_des.c
218
*p++ = IAC;
lib/libtelnet/enc_des.c
220
*p++ = IAC;
lib/libtelnet/enc_des.c
278
*p++ = IAC;
lib/libtelnet/enc_des.c
303
*p++ = IAC;
lib/libtelnet/encrypt.c
132
static unsigned char str_send[64] = { IAC, SB, TELOPT_ENCRYPT,
lib/libtelnet/encrypt.c
135
static unsigned char str_start[72] = { IAC, SB, TELOPT_ENCRYPT };
lib/libtelnet/encrypt.c
136
static unsigned char str_end[] = { IAC, SB, TELOPT_ENCRYPT, 0, IAC, SE };
lib/libtelnet/encrypt.c
201
if ((str_send[str_suplen++] = ep->type) == IAC)
lib/libtelnet/encrypt.c
202
str_send[str_suplen++] = IAC;
lib/libtelnet/encrypt.c
207
str_send[str_suplen++] = IAC;
lib/libtelnet/encrypt.c
700
static unsigned char str_keyid[(MAXKEYLEN*2)+5] = { IAC, SB, TELOPT_ENCRYPT };
lib/libtelnet/encrypt.c
771
if ((*strp++ = *keyid++) == IAC)
lib/libtelnet/encrypt.c
772
*strp++ = IAC;
lib/libtelnet/encrypt.c
774
*strp++ = IAC;
lib/libtelnet/encrypt.c
830
if ((*p++ = ki[0].keyid[i]) == IAC)
lib/libtelnet/encrypt.c
831
*p++ = IAC;
lib/libtelnet/encrypt.c
833
*p++ = IAC;
lib/libtelnet/encrypt.c
884
if ((*p++ = ki[1].keyid[i]) == IAC)
lib/libtelnet/encrypt.c
885
*p++ = IAC;
lib/libtelnet/encrypt.c
887
*p++ = IAC;
lib/libtelnet/kerberos5.c
119
if ((*p++ = *cd++) == IAC)
lib/libtelnet/kerberos5.c
120
*p++ = IAC;
lib/libtelnet/kerberos5.c
122
*p++ = IAC;
lib/libtelnet/kerberos5.c
80
static unsigned char str_data[1024] = {IAC, SB, TELOPT_AUTHENTICATION, 0,
lib/libtelnet/sra.c
108
if ((*p++ = *cd++) == IAC)
lib/libtelnet/sra.c
109
*p++ = IAC;
lib/libtelnet/sra.c
111
*p++ = IAC;
lib/libtelnet/sra.c
73
static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0,
libexec/ftpd/ftpcmd.y
1397
if (c == IAC) {
libexec/ftpd/ftpcmd.y
1408
cprintf(stdout, "%c%c%c", IAC, DONT, 0377&c);
libexec/ftpd/ftpcmd.y
1416
cprintf(stdout, "%c%c%c", IAC, WONT, 0377&c);
libexec/ftpd/ftpcmd.y
1419
case IAC:
libexec/telnetd/slc.c
163
IAC, SB, TELOPT_LINEMODE, LM_SLC);
libexec/telnetd/slc.c
203
IAC, SE);
libexec/telnetd/state.c
134
if (c == IAC) {
libexec/telnetd/state.c
1540
ADD(c); if (c == SE || c == IAC) ADD(c); \
libexec/telnetd/state.c
1553
ADD(IAC);
libexec/telnetd/state.c
1622
ADD(IAC);
libexec/telnetd/state.c
191
output_data("%c%c", IAC, DM);
libexec/telnetd/state.c
275
case IAC:
libexec/telnetd/state.c
283
if (c == IAC) {
libexec/telnetd/state.c
292
if (c != IAC) {
libexec/telnetd/state.c
303
SB_ACCUM(IAC);
libexec/telnetd/state.c
316
SB_ACCUM(IAC);
libexec/telnetd/state.c
428
(void) output_data("%c%c%c", IAC, DO, option);
libexec/telnetd/state.c
651
(void) output_data("%c%c%c", IAC, DONT, option);
libexec/telnetd/state.c
799
(void) output_data("%c%c%c", IAC, WILL, option);
libexec/telnetd/state.c
953
(void) output_data("%c%c%c", IAC, WONT, option);
libexec/telnetd/telnetd.c
1044
output_data("%c%c", IAC, DM);
libexec/telnetd/telnetd.c
1058
IAC, SB, TELOPT_LFLOW,
libexec/telnetd/telnetd.c
1061
IAC, SE);
libexec/telnetd/telnetd.c
1076
if (c == IAC)
libexec/telnetd/telnetd.c
483
IAC, SB, TELOPT_TTYPE, TELQUAL_SEND, IAC, SE
libexec/telnetd/telnetd.c
527
{ IAC, SB, TELOPT_TSPEED, TELQUAL_SEND, IAC, SE };
libexec/telnetd/telnetd.c
543
{ IAC, SB, TELOPT_XDISPLOC, TELQUAL_SEND, IAC, SE };
libexec/telnetd/telnetd.c
550
{ IAC, SB, TELOPT_NEW_ENVIRON, TELQUAL_SEND, IAC, SE };
libexec/telnetd/telnetd.c
557
{ IAC, SB, TELOPT_OLD_ENVIRON, TELQUAL_SEND, IAC, SE };
libexec/telnetd/termstat.c
282
(void) output_data("%c%c%c%c%c%c%c", IAC, SB,
libexec/telnetd/termstat.c
284
IAC, SE);
libexec/telnetd/termstat.c
310
(void) output_data("%c%c%c%c%c%c%c", IAC, SB,
libexec/telnetd/termstat.c
312
IAC, SE);
libexec/telnetd/termstat.c
357
IAC, SB, TELOPT_LFLOW,
libexec/telnetd/termstat.c
359
IAC, SE);
libexec/telnetd/termstat.c
364
IAC, SB, TELOPT_LFLOW,
libexec/telnetd/termstat.c
367
IAC, SE);
libexec/telnetd/termstat.c
438
(void) output_data("%c%c%c%c%c%c%c", IAC,
libexec/telnetd/termstat.c
440
useeditmode, IAC, SE);
libexec/telnetd/termstat.c
496
(void) output_data("%c%c%c%c%c%c%c", IAC,
libexec/telnetd/termstat.c
499
IAC, SE);
libexec/telnetd/utility.c
151
if ((*current&0xff) != IAC) {
libexec/telnetd/utility.c
168
if ((*look++&0xff) == IAC) {
libexec/telnetd/utility.c
203
#define wewant(p) ((nfrontp > p) && ((*p&0xff) == IAC) && \
libexec/telnetd/utility.c
546
if (i != IAC || j != SE) {
libexec/telnetd/utility.c
715
if ((pointer[i+SLC_VALUE] == IAC) &&
libexec/telnetd/utility.c
716
(pointer[i+SLC_VALUE+1] == IAC))
usr.bin/ftp/ftp.c
2152
buf[0] = IAC;
usr.bin/ftp/ftp.c
2154
buf[2] = IAC;
usr.bin/ftp/ftp.c
414
if (c == IAC) { /* handle telnet commands */
usr.bin/ftp/ftp.c
421
IAC, DONT, c);
usr.bin/ftp/ftp.c
431
IAC, WONT, c);
usr.bin/nc/netcat.c
1429
if (*p != IAC)
usr.bin/nc/netcat.c
1432
obuf[0] = IAC;
usr.bin/telnet/authenc.c
60
if (str[0] == IAC && str[1] == SE) {
usr.bin/telnet/commands.c
423
NET2ADD(IAC, (unsigned char)s->what);
usr.bin/telnet/commands.c
424
printoption("SENT", IAC, s->what);
usr.bin/telnet/telnet.c
1018
static unsigned char str_lm[] = { IAC, SB, TELOPT_LINEMODE, 0, 0, IAC, SE };
usr.bin/telnet/telnet.c
1093
IAC, SB, TELOPT_LINEMODE, LM_MODE, 0, IAC, SE
usr.bin/telnet/telnet.c
1214
IAC, SB, TELOPT_LINEMODE, LM_SLC, 0, SLC_VARIABLE, 0, IAC, SE
usr.bin/telnet/telnet.c
1217
IAC, SB, TELOPT_LINEMODE, LM_SLC, 0, SLC_DEFAULT, 0, IAC, SE
usr.bin/telnet/telnet.c
1355
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1366
if ((*slc_replyp++ = func) == IAC)
usr.bin/telnet/telnet.c
1367
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1368
if ((*slc_replyp++ = flags) == IAC)
usr.bin/telnet/telnet.c
1369
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1370
if ((*slc_replyp++ = (unsigned char)value) == IAC)
usr.bin/telnet/telnet.c
1371
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1382
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1481
*opt_replyp++ = IAC;
usr.bin/telnet/telnet.c
1543
case IAC:
usr.bin/telnet/telnet.c
1544
*opt_replyp++ = IAC;
usr.bin/telnet/telnet.c
1582
*opt_replyp++ = IAC;
usr.bin/telnet/telnet.c
1644
if (c == IAC) {
usr.bin/telnet/telnet.c
1719
printoption("RCVD", IAC, DM);
usr.bin/telnet/telnet.c
1732
case IAC:
usr.bin/telnet/telnet.c
1733
TTYADD(IAC);
usr.bin/telnet/telnet.c
1739
printoption("RCVD", IAC, c);
usr.bin/telnet/telnet.c
1779
if (c == IAC) {
usr.bin/telnet/telnet.c
1788
if (c != IAC) {
usr.bin/telnet/telnet.c
1801
SB_ACCUM(IAC);
usr.bin/telnet/telnet.c
1806
printoption("In SUBOPTION processing, RCVD", IAC, c);
usr.bin/telnet/telnet.c
1814
SB_ACCUM(IAC);
usr.bin/telnet/telnet.c
1965
case IAC:
usr.bin/telnet/telnet.c
1966
NET2ADD(IAC, IAC);
usr.bin/telnet/telnet.c
1972
} else if (c == IAC) {
usr.bin/telnet/telnet.c
1973
NET2ADD(IAC, IAC);
usr.bin/telnet/telnet.c
2115
if ((*current&0xff) != IAC) {
usr.bin/telnet/telnet.c
2129
if ((*look++&0xff) == IAC) {
usr.bin/telnet/telnet.c
2165
#define wewant(p) ((nfrontp > p) && ((*p&0xff) == IAC) && \
usr.bin/telnet/telnet.c
2205
NET2ADD(IAC, DO);
usr.bin/telnet/telnet.c
2217
NET2ADD(IAC, AO);
usr.bin/telnet/telnet.c
2218
printoption("SENT", IAC, AO);
usr.bin/telnet/telnet.c
2228
NET2ADD(IAC, EL);
usr.bin/telnet/telnet.c
2229
printoption("SENT", IAC, EL);
usr.bin/telnet/telnet.c
2235
NET2ADD(IAC, EC);
usr.bin/telnet/telnet.c
2236
printoption("SENT", IAC, EC);
usr.bin/telnet/telnet.c
2244
NETADD(IAC);
usr.bin/telnet/telnet.c
2247
printoption("SENT", IAC, DM);
usr.bin/telnet/telnet.c
2265
*cp++ = IAC;
usr.bin/telnet/telnet.c
2269
*cp++ = IAC;
usr.bin/telnet/telnet.c
2282
NET2ADD(IAC, IP);
usr.bin/telnet/telnet.c
2283
printoption("SENT", IAC, IP);
usr.bin/telnet/telnet.c
2296
NET2ADD(IAC, BREAK);
usr.bin/telnet/telnet.c
2297
printoption("SENT", IAC, BREAK);
usr.bin/telnet/telnet.c
2310
NET2ADD(IAC, ABORT);
usr.bin/telnet/telnet.c
2311
printoption("SENT", IAC, ABORT);
usr.bin/telnet/telnet.c
2324
NET2ADD(IAC, SUSP);
usr.bin/telnet/telnet.c
2325
printoption("SENT", IAC, SUSP);
usr.bin/telnet/telnet.c
2338
NET2ADD(IAC, xEOF);
usr.bin/telnet/telnet.c
2339
printoption("SENT", IAC, xEOF);
usr.bin/telnet/telnet.c
2345
NET2ADD(IAC, AYT);
usr.bin/telnet/telnet.c
2346
printoption("SENT", IAC, AYT);
usr.bin/telnet/telnet.c
2363
#define PUTSHORT(cp, x) { if ((*cp++ = ((x)>>8)&0xff) == IAC) *cp++ = IAC; \
usr.bin/telnet/telnet.c
2364
if ((*cp++ = ((x))&0xff) == IAC) *cp++ = IAC; }
usr.bin/telnet/telnet.c
2372
*cp++ = IAC;
usr.bin/telnet/telnet.c
2377
*cp++ = IAC;
usr.bin/telnet/telnet.c
260
NET2ADD(IAC, DO);
usr.bin/telnet/telnet.c
275
NET2ADD(IAC, DONT);
usr.bin/telnet/telnet.c
290
NET2ADD(IAC, WILL);
usr.bin/telnet/telnet.c
305
NET2ADD(IAC, WONT);
usr.bin/telnet/telnet.c
785
snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB,
usr.bin/telnet/telnet.c
786
TELOPT_TTYPE, TELQUAL_IS, name, IAC, SE);
usr.bin/telnet/telnet.c
807
snprintf((char *)temp, sizeof(temp), "%c%c%c%c%ld,%ld%c%c", IAC, SB,
usr.bin/telnet/telnet.c
808
TELOPT_TSPEED, TELQUAL_IS, osp, isp, IAC, SE);
usr.bin/telnet/telnet.c
909
snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB,
usr.bin/telnet/telnet.c
910
TELOPT_XDISPLOC, TELQUAL_IS, dp, IAC, SE);
usr.bin/telnet/utilities.c
178
if (cmd == IAC) {
usr.bin/telnet/utilities.c
307
if (i != IAC || j != SE) {
usr.bin/telnet/utilities.c
619
if ((pointer[i+SLC_VALUE] == IAC) &&
usr.bin/telnet/utilities.c
620
(pointer[i+SLC_VALUE+1] == IAC))