/src/usr.bin/telnet/ |
telnet.c | 262 NET2ADD(IAC, DO); 277 NET2ADD(IAC, DONT); 292 NET2ADD(IAC, WILL); 307 NET2ADD(IAC, WONT); 787 snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, 788 TELOPT_TTYPE, TELQUAL_IS, name, IAC, SE); 809 snprintf((char *)temp, sizeof(temp), "%c%c%c%c%ld,%ld%c%c", IAC, SB, 810 TELOPT_TSPEED, TELQUAL_IS, osp, isp, IAC, SE); 911 snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, 912 TELOPT_XDISPLOC, TELQUAL_IS, dp, IAC, SE) [all...] |
authenc.c | 60 if (str[0] == IAC && str[1] == SE) {
|
utilities.c | 179 if (cmd == IAC) { 181 fprintf(NetTrace, "%s IAC %s", direction, TELCMD(option)); 183 fprintf(NetTrace, "%s IAC %d", direction, option); 300 fprintf(NetTrace, "%s IAC SB ", 308 if (i != IAC || j != SE) { 322 fprintf(NetTrace, ", not IAC SE!) "); 620 if ((pointer[i+SLC_VALUE] == IAC) && 621 (pointer[i+SLC_VALUE+1] == IAC))
|
/src/libexec/telnetd/ |
termstat.c | 282 (void) output_data("%c%c%c%c%c%c%c", IAC, SB, 284 IAC, SE); 310 (void) output_data("%c%c%c%c%c%c%c", IAC, SB, 312 IAC, SE); 357 IAC, SB, TELOPT_LFLOW, 359 IAC, SE); 364 IAC, SB, TELOPT_LFLOW, 367 IAC, SE); 438 (void) output_data("%c%c%c%c%c%c%c", IAC, 440 useeditmode, IAC, SE) [all...] |
telnetd.c | 483 IAC, SB, TELOPT_TTYPE, TELQUAL_SEND, IAC, SE 527 { IAC, SB, TELOPT_TSPEED, TELQUAL_SEND, IAC, SE }; 543 { IAC, SB, TELOPT_XDISPLOC, TELQUAL_SEND, IAC, SE }; 550 { IAC, SB, TELOPT_NEW_ENVIRON, TELQUAL_SEND, IAC, SE }; 557 { IAC, SB, TELOPT_OLD_ENVIRON, TELQUAL_SEND, IAC, SE } [all...] |
state.c | 76 #define TS_IAC 1 /* look for double IAC's */ 134 if (c == IAC) { 155 printoption("td: recv IAC", c)); 161 printoption("td: recv IAC", c)); 170 printoption("td: recv IAC", c)); 180 printoption("td: recv IAC", c)); 191 output_data("%c%c", IAC, DM); 194 printoption("td: send IAC", DM)); 208 printoption("td: recv IAC", c)); 225 printoption("td: recv IAC", c)) [all...] |
utility.c | 142 * if the current address is a TELNET IAC ("I Am a Command") 151 if ((*current&0xff) != IAC) { 168 if ((*look++&0xff) == IAC) { 203 #define wewant(p) ((nfrontp > p) && ((*p&0xff) == IAC) && \ 546 if (i != IAC || j != SE) { 560 output_data(", not IAC SE!) "); 715 if ((pointer[i+SLC_VALUE] == IAC) && 716 (pointer[i+SLC_VALUE+1] == IAC))
|
slc.c | 163 IAC, SB, TELOPT_LINEMODE, LM_SLC); 203 IAC, SE);
|
/src/lib/libtelnet/ |
encrypt.c | 132 static unsigned char str_send[64] = { IAC, SB, TELOPT_ENCRYPT, 135 static unsigned char str_start[72] = { IAC, SB, TELOPT_ENCRYPT }; 136 static unsigned char str_end[] = { IAC, SB, TELOPT_ENCRYPT, 0, IAC, SE }; 201 if ((str_send[str_suplen++] = ep->type) == IAC) 202 str_send[str_suplen++] = IAC; 207 str_send[str_suplen++] = IAC; 700 static unsigned char str_keyid[(MAXKEYLEN*2)+5] = { IAC, SB, TELOPT_ENCRYPT }; 771 if ((*strp++ = *keyid++) == IAC) 772 *strp++ = IAC; [all...] |
auth.c | 287 static unsigned char str_request[64] = { IAC, SB, 306 *e++ = IAC; 328 static unsigned char str_none[] = { IAC, SB, TELOPT_AUTHENTICATION, 330 IAC, SE }; 482 = { IAC, SB, TELOPT_AUTHENTICATION, TELQUAL_NAME, }; 487 if ((*e++ = *cp++) == IAC) 488 *e++ = IAC; 492 *e++ = IAC;
|
enc_des.c | 146 fbp->fb_feed[0] = IAC; 217 if ((*p++ = fbp->temp_feed[x]) == IAC) 218 *p++ = IAC; 220 *p++ = IAC; 278 *p++ = IAC; 303 *p++ = IAC;
|
sra.c | 73 static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0, 108 if ((*p++ = *cd++) == IAC) 109 *p++ = IAC; 111 *p++ = IAC;
|
kerberos5.c | 80 static unsigned char str_data[1024] = {IAC, SB, TELOPT_AUTHENTICATION, 0, 119 if ((*p++ = *cd++) == IAC) 120 *p++ = IAC; 122 *p++ = IAC;
|
/src/include/arpa/ |
telnet.h | 40 #define IAC 255 /* interpret as command: */ 67 "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC", 0 74 #define TELCMD_LAST IAC
|
/src/libexec/ftpd/ |
ftpcmd.y | 1397 if (c == IAC) { 1408 cprintf(stdout, "%c%c%c", IAC, DONT, 0377&c); 1416 cprintf(stdout, "%c%c%c", IAC, WONT, 0377&c); 1419 case IAC:
|
/src/usr.bin/ftp/ |
ftp.c | 414 if (c == IAC) { /* handle telnet commands */ 419 fprintf(cout, "%c%c%c", IAC, DONT, c); 425 fprintf(cout, "%c%c%c", IAC, WONT, c); 2121 * send IAC in urgent mode instead of DM because 4.3BSD places oob mark 2124 buf[0] = IAC; 2126 buf[2] = IAC;
|
/src/usr.bin/nc/ |
netcat.c | 1378 if (*p != IAC) 1381 obuf[0] = IAC;
|