crypto/libressl/apps/nc/netcat.c
1456
if (*p != IAC)
crypto/libressl/apps/nc/netcat.c
1459
obuf[0] = IAC;
include/arpa/telnet.h
75
#define TELCMD_LAST IAC
lib/libtelnet/auth.c
332
static unsigned char str_request[64] = { IAC, SB,
lib/libtelnet/auth.c
351
*e++ = IAC;
lib/libtelnet/auth.c
373
static unsigned char str_none[] = { IAC, SB, TELOPT_AUTHENTICATION,
lib/libtelnet/auth.c
375
IAC, SE };
lib/libtelnet/auth.c
519
= { IAC, SB, TELOPT_AUTHENTICATION, TELQUAL_NAME, };
lib/libtelnet/auth.c
524
if ((*e++ = *cp++) == IAC)
lib/libtelnet/auth.c
525
*e++ = IAC;
lib/libtelnet/auth.c
529
*e++ = IAC;
lib/libtelnet/enc_des.c
141
fbp->fb_feed[0] = IAC;
lib/libtelnet/enc_des.c
212
if ((*p++ = fbp->temp_feed[x]) == IAC)
lib/libtelnet/enc_des.c
213
*p++ = IAC;
lib/libtelnet/enc_des.c
215
*p++ = IAC;
lib/libtelnet/enc_des.c
274
*p++ = IAC;
lib/libtelnet/enc_des.c
299
*p++ = IAC;
lib/libtelnet/encrypt.c
130
static unsigned char str_send[64] = { IAC, SB, TELOPT_ENCRYPT,
lib/libtelnet/encrypt.c
133
static unsigned char str_start[72] = { IAC, SB, TELOPT_ENCRYPT };
lib/libtelnet/encrypt.c
134
static unsigned char str_end[] = { IAC, SB, TELOPT_ENCRYPT, 0, IAC, SE };
lib/libtelnet/encrypt.c
198
if ((str_send[str_suplen++] = ep->type) == IAC)
lib/libtelnet/encrypt.c
199
str_send[str_suplen++] = IAC;
lib/libtelnet/encrypt.c
204
str_send[str_suplen++] = IAC;
lib/libtelnet/encrypt.c
691
static unsigned char str_keyid[(MAXKEYLEN*2)+5] = { IAC, SB, TELOPT_ENCRYPT };
lib/libtelnet/encrypt.c
763
if ((*strp++ = *keyid++) == IAC)
lib/libtelnet/encrypt.c
764
*strp++ = IAC;
lib/libtelnet/encrypt.c
766
*strp++ = IAC;
lib/libtelnet/encrypt.c
822
if ((*p++ = ki[0].keyid[i]) == IAC)
lib/libtelnet/encrypt.c
823
*p++ = IAC;
lib/libtelnet/encrypt.c
825
*p++ = IAC;
lib/libtelnet/encrypt.c
876
if ((*p++ = ki[1].keyid[i]) == IAC)
lib/libtelnet/encrypt.c
877
*p++ = IAC;
lib/libtelnet/encrypt.c
879
*p++ = IAC;
lib/libtelnet/kerberos5.c
118
if ((*p++ = *cd++) == IAC)
lib/libtelnet/kerberos5.c
119
*p++ = IAC;
lib/libtelnet/kerberos5.c
121
*p++ = IAC;
lib/libtelnet/kerberos5.c
79
static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0,
lib/libtelnet/krb4encpwd.c
132
if ((*p++ = *cd++) == IAC)
lib/libtelnet/krb4encpwd.c
133
*p++ = IAC;
lib/libtelnet/krb4encpwd.c
135
*p++ = IAC;
lib/libtelnet/krb4encpwd.c
85
static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0,
lib/libtelnet/krb4encpwd.c
87
static unsigned char str_name[1024] = { IAC, SB, TELOPT_AUTHENTICATION,
lib/libtelnet/rsaencpwd.c
128
if ((*p++ = *cd++) == IAC)
lib/libtelnet/rsaencpwd.c
129
*p++ = IAC;
lib/libtelnet/rsaencpwd.c
131
*p++ = IAC;
lib/libtelnet/rsaencpwd.c
236
case IAC:
lib/libtelnet/rsaencpwd.c
81
static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0,
lib/libtelnet/rsaencpwd.c
83
static unsigned char str_name[1024] = { IAC, SB, TELOPT_AUTHENTICATION,
lib/libtelnet/sra.c
102
if ((*p++ = *cd++) == IAC)
lib/libtelnet/sra.c
103
*p++ = IAC;
lib/libtelnet/sra.c
105
*p++ = IAC;
lib/libtelnet/sra.c
66
IAC, SB, TELOPT_AUTHENTICATION, 0, AUTHTYPE_SRA, };
libexec/ftpd/ftpcmd.y
1214
if (c == IAC) {
libexec/ftpd/ftpcmd.y
1223
printf("%c%c%c", IAC, DONT, 0377&c);
libexec/ftpd/ftpcmd.y
1230
printf("%c%c%c", IAC, WONT, 0377&c);
libexec/ftpd/ftpcmd.y
1233
case IAC:
libexec/telnetd/slc.c
152
IAC, SB, TELOPT_LINEMODE, LM_SLC);
libexec/telnetd/slc.c
190
(void) sprintf((char *)slcptr, "%c%c", IAC, SE);
libexec/telnetd/state.c
113
if (c == IAC) {
libexec/telnetd/state.c
1534
#define ADD_DATA(c) { *ncp++ = c; if (c == SE || c == IAC) *ncp++ = c; }
libexec/telnetd/state.c
1546
ADD(IAC);
libexec/telnetd/state.c
1563
if (i == IAC)
libexec/telnetd/state.c
1564
ADD(IAC);
libexec/telnetd/state.c
1569
if (i == IAC)
libexec/telnetd/state.c
1570
ADD(IAC);
libexec/telnetd/state.c
1619
ADD(IAC);
libexec/telnetd/state.c
202
output_data("%c%c", IAC, DM);
libexec/telnetd/state.c
286
case IAC:
libexec/telnetd/state.c
294
if (c == IAC) {
libexec/telnetd/state.c
303
if (c != IAC) {
libexec/telnetd/state.c
314
SB_ACCUM(IAC);
libexec/telnetd/state.c
327
SB_ACCUM(IAC);
libexec/telnetd/state.c
44
unsigned char doopt[] = { IAC, DO, '%', 'c', 0 };
libexec/telnetd/state.c
45
unsigned char dont[] = { IAC, DONT, '%', 'c', 0 };
libexec/telnetd/state.c
46
unsigned char will[] = { IAC, WILL, '%', 'c', 0 };
libexec/telnetd/state.c
47
unsigned char wont[] = { IAC, WONT, '%', 'c', 0 };
libexec/telnetd/telnetd.c
1062
output_data("%c%c", IAC, DM);
libexec/telnetd/telnetd.c
1077
IAC, SB, TELOPT_LFLOW,
libexec/telnetd/telnetd.c
1080
IAC, SE);
libexec/telnetd/telnetd.c
1095
if (c == IAC)
libexec/telnetd/telnetd.c
435
IAC, SB, TELOPT_TTYPE, TELQUAL_SEND, IAC, SE
libexec/telnetd/telnetd.c
493
{ IAC, SB, TELOPT_TSPEED, TELQUAL_SEND, IAC, SE };
libexec/telnetd/telnetd.c
500
{ IAC, SB, TELOPT_XDISPLOC, TELQUAL_SEND, IAC, SE };
libexec/telnetd/telnetd.c
507
{ IAC, SB, TELOPT_NEW_ENVIRON, TELQUAL_SEND, IAC, SE };
libexec/telnetd/telnetd.c
514
{ IAC, SB, TELOPT_OLD_ENVIRON, TELQUAL_SEND, IAC, SE };
libexec/telnetd/termstat.c
283
output_data("%c%c%c%c%c%c%c", IAC, SB,
libexec/telnetd/termstat.c
285
IAC, SE);
libexec/telnetd/termstat.c
311
output_data("%c%c%c%c%c%c%c", IAC, SB,
libexec/telnetd/termstat.c
313
IAC, SE);
libexec/telnetd/termstat.c
358
IAC, SB, TELOPT_LFLOW,
libexec/telnetd/termstat.c
360
IAC, SE);
libexec/telnetd/termstat.c
365
IAC, SB, TELOPT_LFLOW,
libexec/telnetd/termstat.c
368
IAC, SE);
libexec/telnetd/termstat.c
439
output_data("%c%c%c%c%c%c%c", IAC,
libexec/telnetd/termstat.c
441
useeditmode, IAC, SE);
libexec/telnetd/termstat.c
497
output_data("%c%c%c%c%c%c%c", IAC,
libexec/telnetd/termstat.c
500
IAC, SE);
libexec/telnetd/utility.c
149
if ((*current&0xff) != IAC) {
libexec/telnetd/utility.c
163
if ((*look++&0xff) == IAC) {
libexec/telnetd/utility.c
196
#define wewant(p) ((nfrontp > p) && ((*p&0xff) == IAC) && \
libexec/telnetd/utility.c
522
if (i != IAC || j != SE) {
libexec/telnetd/utility.c
696
if ((pointer[i+SLC_VALUE] == IAC) &&
libexec/telnetd/utility.c
697
(pointer[i+SLC_VALUE+1] == IAC))
usr.bin/telnet/authenc.c
53
if (str[0] == IAC && str[1] == SE)
usr.bin/telnet/commands.c
371
NET2ADD(IAC, s->what);
usr.bin/telnet/commands.c
372
printoption("SENT", IAC, s->what);
usr.bin/telnet/telnet.c
1048
IAC, SB, TELOPT_LINEMODE, LM_MODE, 0, IAC, SE
usr.bin/telnet/telnet.c
1179
IAC, SB, TELOPT_LINEMODE, LM_SLC, 0, SLC_VARIABLE, 0, IAC, SE
usr.bin/telnet/telnet.c
1182
IAC, SB, TELOPT_LINEMODE, LM_SLC, 0, SLC_DEFAULT, 0, IAC, SE
usr.bin/telnet/telnet.c
1320
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1337
if ((*slc_replyp++ = func) == IAC)
usr.bin/telnet/telnet.c
1338
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1339
if ((*slc_replyp++ = flags) == IAC)
usr.bin/telnet/telnet.c
1340
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1341
if ((*slc_replyp++ = (unsigned char)value) == IAC)
usr.bin/telnet/telnet.c
1342
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1352
*slc_replyp++ = IAC;
usr.bin/telnet/telnet.c
1488
*opt_replyp++ = IAC;
usr.bin/telnet/telnet.c
1553
case IAC:
usr.bin/telnet/telnet.c
1554
*opt_replyp++ = IAC;
usr.bin/telnet/telnet.c
1602
*opt_replyp++ = IAC;
usr.bin/telnet/telnet.c
1664
if (c == IAC) {
usr.bin/telnet/telnet.c
1739
printoption("RCVD", IAC, DM);
usr.bin/telnet/telnet.c
1751
case IAC:
usr.bin/telnet/telnet.c
1752
TTYADD(IAC);
usr.bin/telnet/telnet.c
1758
printoption("RCVD", IAC, c);
usr.bin/telnet/telnet.c
1798
if (c == IAC) {
usr.bin/telnet/telnet.c
1807
if (c != IAC) {
usr.bin/telnet/telnet.c
1820
SB_ACCUM(IAC);
usr.bin/telnet/telnet.c
1825
printoption("In SUBOPTION processing, RCVD", IAC, c);
usr.bin/telnet/telnet.c
1833
SB_ACCUM(IAC);
usr.bin/telnet/telnet.c
1984
case IAC:
usr.bin/telnet/telnet.c
1985
NET2ADD(IAC, IAC);
usr.bin/telnet/telnet.c
1991
} else if (c == IAC) {
usr.bin/telnet/telnet.c
1992
NET2ADD(IAC, IAC);
usr.bin/telnet/telnet.c
211
NET2ADD(IAC, DO);
usr.bin/telnet/telnet.c
2137
if ((*current&0xff) != IAC) {
usr.bin/telnet/telnet.c
2151
if ((*look++&0xff) == IAC) {
usr.bin/telnet/telnet.c
2194
NET2ADD(IAC, DO);
usr.bin/telnet/telnet.c
2206
NET2ADD(IAC, AO);
usr.bin/telnet/telnet.c
2207
printoption("SENT", IAC, AO);
usr.bin/telnet/telnet.c
2216
NET2ADD(IAC, EL);
usr.bin/telnet/telnet.c
2217
printoption("SENT", IAC, EL);
usr.bin/telnet/telnet.c
2223
NET2ADD(IAC, EC);
usr.bin/telnet/telnet.c
2224
printoption("SENT", IAC, EC);
usr.bin/telnet/telnet.c
2231
NETADD(IAC);
usr.bin/telnet/telnet.c
2234
printoption("SENT", IAC, DM);
usr.bin/telnet/telnet.c
2252
*cp++ = IAC;
usr.bin/telnet/telnet.c
2256
*cp++ = IAC;
usr.bin/telnet/telnet.c
226
NET2ADD(IAC, DONT);
usr.bin/telnet/telnet.c
2269
NET2ADD(IAC, IP);
usr.bin/telnet/telnet.c
2270
printoption("SENT", IAC, IP);
usr.bin/telnet/telnet.c
2283
NET2ADD(IAC, BREAK);
usr.bin/telnet/telnet.c
2284
printoption("SENT", IAC, BREAK);
usr.bin/telnet/telnet.c
2297
NET2ADD(IAC, ABORT);
usr.bin/telnet/telnet.c
2298
printoption("SENT", IAC, ABORT);
usr.bin/telnet/telnet.c
2311
NET2ADD(IAC, SUSP);
usr.bin/telnet/telnet.c
2312
printoption("SENT", IAC, SUSP);
usr.bin/telnet/telnet.c
2325
NET2ADD(IAC, xEOF);
usr.bin/telnet/telnet.c
2326
printoption("SENT", IAC, xEOF);
usr.bin/telnet/telnet.c
2332
NET2ADD(IAC, AYT);
usr.bin/telnet/telnet.c
2333
printoption("SENT", IAC, AYT);
usr.bin/telnet/telnet.c
2350
#define PUTSHORT(cp, x) { if ((*cp++ = ((x)>>8)&0xff) == IAC) *cp++ = IAC; \
usr.bin/telnet/telnet.c
2351
if ((*cp++ = ((x))&0xff) == IAC) *cp++ = IAC; }
usr.bin/telnet/telnet.c
2359
*cp++ = IAC;
usr.bin/telnet/telnet.c
2364
*cp++ = IAC;
usr.bin/telnet/telnet.c
241
NET2ADD(IAC, WILL);
usr.bin/telnet/telnet.c
256
NET2ADD(IAC, WONT);
usr.bin/telnet/telnet.c
736
IAC, SB, TELOPT_TTYPE, TELQUAL_IS, name, IAC, SE);
usr.bin/telnet/telnet.c
758
IAC, SB, TELOPT_TSPEED, TELQUAL_IS,
usr.bin/telnet/telnet.c
759
ospeed, ispeed, IAC, SE);
usr.bin/telnet/telnet.c
864
snprintf(temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB,
usr.bin/telnet/telnet.c
865
TELOPT_XDISPLOC, TELQUAL_IS, dp, IAC, SE);
usr.bin/telnet/telnet.c
973
static unsigned char str_lm[] = { IAC, SB, TELOPT_LINEMODE, 0, 0, IAC, SE };
usr.bin/telnet/utilities.c
172
if (cmd == IAC) {
usr.bin/telnet/utilities.c
298
if (i != IAC || j != SE) {
usr.bin/telnet/utilities.c
607
if ((pointer[i+SLC_VALUE] == IAC) &&
usr.bin/telnet/utilities.c
608
(pointer[i+SLC_VALUE+1] == IAC))
usr.sbin/dconschat/dconschat.c
590
char sga[] = {IAC, WILL, TELOPT_SGA};
usr.sbin/dconschat/dconschat.c
591
char linemode[] = {IAC, DONT, TELOPT_LINEMODE};
usr.sbin/dconschat/dconschat.c
592
char echo[] = {IAC, WILL, TELOPT_ECHO};
usr.sbin/dconschat/dconschat.c
593
char bin[] = {IAC, DO, TELOPT_BINARY};
usr.sbin/dconschat/dconschat.c
624
if (*sp == IAC) {