# 2.11BSD#431 - /usr/include/arpa/telnet.h

##### Variables

    telcmds           X
    telopts           X

##### Macros

    AO                X
    AYT               X
    BREAK             X
    DM                X
    DO                X
    DONT              X
    EC                X
    EL                X
    EOR               X
    GA                X
    IAC               X
    IP                X
    NOP               X
    NTELOPTS          X
    SB                X
    SE                X
    SYNCH             X
    TELOPT_3270REGIME X
    TELOPT_BINARY     X
    TELOPT_BM         X
    TELOPT_DET        X
    TELOPT_ECHO       X
    TELOPT_EOR        X
    TELOPT_EXOPL      X
    TELOPT_LFLOW      X
    TELOPT_LOGOUT     X
    TELOPT_NAMS       X
    TELOPT_NAOCRD     X
    TELOPT_NAOFFD     X
    TELOPT_NAOHTD     X
    TELOPT_NAOHTS     X
    TELOPT_NAOL       X
    TELOPT_NAOLFD     X
    TELOPT_NAOP       X
    TELOPT_NAOVTD     X
    TELOPT_NAOVTS     X
    TELOPT_NAWS       X
    TELOPT_OUTMRK     X
    TELOPT_RCP        X
    TELOPT_RCTE       X
    TELOPT_SGA        X
    TELOPT_SNDLOC     X
    TELOPT_STATUS     X
    TELOPT_SUPDUP     X
    TELOPT_SUPDUPOUTPUTX
    TELOPT_TM         X
    TELOPT_TSPEED     X
    TELOPT_TTYLOC     X
    TELOPT_TTYPE      X
    TELOPT_TUID       X
    TELOPT_X3PAD      X
    TELOPT_XASCII     X
    TELQUAL_IS        X
    TELQUAL_SEND      X
    WILL              X
    WONT              X

       1: /*
       2:  * Copyright (c) 1983 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that the above copyright notice and this paragraph are
       7:  * duplicated in all such forms and that any documentation,
       8:  * advertising materials, and other materials related to such
       9:  * distribution and use acknowledge that the software was developed
      10:  * by the University of California, Berkeley.  The name of the
      11:  * University may not be used to endorse or promote products derived
      12:  * from this software without specific prior written permission.
      13:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
      14:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      15:  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      16:  *
      17:  *	@(#)telnet.h	5.4 (Berkeley) 2/15/89
      18:  */
      19:
      20: /*
      21:  * Definitions for the TELNET protocol.
      22:  */
      23: #define IAC 255     /* interpret as command: */
      24: #define DONT    254     /* you are not to use option */
      25: #define DO  253     /* please, you use option */
      26: #define WONT    252     /* I won't use option */
      27: #define WILL    251     /* I will use option */
      28: #define SB  250     /* interpret as subnegotiation */
      29: #define GA  249     /* you may reverse the line */
      30: #define EL  248     /* erase the current line */
      31: #define EC  247     /* erase the current character */
      32: #define AYT 246     /* are you there */
      33: #define AO  245     /* abort output--but let prog finish */
      34: #define IP  244     /* interrupt process--permanently */
      35: #define BREAK   243     /* break */
      36: #define DM  242     /* data mark--for connect. cleaning */
      37: #define NOP 241     /* nop */
      38: #define SE  240     /* end sub negotiation */
      39: #define EOR     239             /* end of record (transparent mode) */
      40:
      41: #define SYNCH   242     /* for telfunc calls */
      42:
      43: #ifdef TELCMDS
      44: char *telcmds[] = {
      45:     "SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC",
      46:     "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC",
      47: };
      48: #endif
      49:
      50: /* telnet options */
      51: #define TELOPT_BINARY   0   /* 8-bit data path */
      52: #define TELOPT_ECHO 1   /* echo */
      53: #define TELOPT_RCP  2   /* prepare to reconnect */
      54: #define TELOPT_SGA  3   /* suppress go ahead */
      55: #define TELOPT_NAMS 4   /* approximate message size */
      56: #define TELOPT_STATUS   5   /* give status */
      57: #define TELOPT_TM   6   /* timing mark */
      58: #define TELOPT_RCTE 7   /* remote controlled transmission and echo */
      59: #define TELOPT_NAOL     8   /* negotiate about output line width */
      60: #define TELOPT_NAOP     9   /* negotiate about output page size */
      61: #define TELOPT_NAOCRD   10  /* negotiate about CR disposition */
      62: #define TELOPT_NAOHTS   11  /* negotiate about horizontal tabstops */
      63: #define TELOPT_NAOHTD   12  /* negotiate about horizontal tab disposition */
      64: #define TELOPT_NAOFFD   13  /* negotiate about formfeed disposition */
      65: #define TELOPT_NAOVTS   14  /* negotiate about vertical tab stops */
      66: #define TELOPT_NAOVTD   15  /* negotiate about vertical tab disposition */
      67: #define TELOPT_NAOLFD   16  /* negotiate about output LF disposition */
      68: #define TELOPT_XASCII   17  /* extended ascic character set */
      69: #define TELOPT_LOGOUT   18  /* force logout */
      70: #define TELOPT_BM   19  /* byte macro */
      71: #define TELOPT_DET  20  /* data entry terminal */
      72: #define TELOPT_SUPDUP   21  /* supdup protocol */
      73: #define TELOPT_SUPDUPOUTPUT 22  /* supdup output */
      74: #define TELOPT_SNDLOC   23  /* send location */
      75: #define TELOPT_TTYPE    24  /* terminal type */
      76: #define TELOPT_EOR  25  /* end or record */
      77: #define TELOPT_TUID 26  /* TACACS user identification */
      78: #define TELOPT_OUTMRK   27  /* output marking */
      79: #define TELOPT_TTYLOC   28  /* terminal location number */
      80: #define TELOPT_3270REGIME 29    /* 3270 regime */
      81: #define TELOPT_X3PAD    30  /* X.3 PAD */
      82: #define TELOPT_NAWS 31  /* window size */
      83: #define TELOPT_TSPEED   32  /* terminal speed */
      84: #define TELOPT_LFLOW    33  /* remote flow control */
      85: #define TELOPT_EXOPL    255 /* extended-options-list */
      86:
      87: #ifdef TELOPTS
      88: #define NTELOPTS    (1+TELOPT_LFLOW)
      89: char *telopts[NTELOPTS] = {
      90:     "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
      91:     "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP",
      92:     "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS",
      93:     "NAOVTD", "NAOLFD", "EXTEND ASCII", "LOGOUT", "BYTE MACRO",
      94:     "DATA ENTRY TERMINAL", "SUPDUP", "SUPDUP OUTPUT",
      95:     "SEND LOCATION", "TERMINAL TYPE", "END OF RECORD",
      96:     "TACACS UID", "OUTPUT MARKING", "TTYLOC",
      97:     "3270 REGIME", "X.3 PAD", "NAWS", "TSPEED", "LFLOW",
      98: };
      99: #endif
     100:
     101: /* sub-option qualifiers */
     102: #define TELQUAL_IS  0   /* option is... */
     103: #define TELQUAL_SEND    1   /* send option */

#### Defined variables

telcmds defined in line 44; used 5 times

- in /usr/src/new/kermit5.188/ckcnet.c line 886, 973-977(2), 1079, 1097

telopts defined in line 89; used 10 times

- in /usr/src/new/kermit5.188/ckcnet.c line 927, 975-978(2), 1090, 1098, 1173
- in /usr/src/ucb/telnet.c line 572-573(3)
- in /usr/src/ucb/tn3270/tn3270.c line 1451

#### Defined macros

AO defined in line 33; used 2 times

- in /usr/src/ucb/telnet.c line 947, 1377

AYT defined in line 32; used 3 times

- in /usr/src/new/kermit5.188/ckucon.c line 1198-1203(2)
- in /usr/src/ucb/telnet.c line 1378

BREAK defined in line 35; used 6 times

- in /usr/src/new/kermit5.188/ckcnet.c line 941-943(2)
- in /usr/src/new/kermit5.188/ckcnet.h line 357
- in /usr/src/ucb/telnet.c line 1363, 1379, 1392

DM defined in line 36; used 8 times

- in /usr/src/libexec/telnetd/telnetd.c line 572, 699
- in /usr/src/ucb/ftp/ftp.c line 1051, 1477, 1508, 1552, 1583
- in /usr/src/ucb/telnet.c line 1335

DO defined in line 25; used 10 times

- in /usr/src/libexec/telnetd/telnetd.c line 44, 213
- in /usr/src/new/kermit5.188/ckcnet.c line 1017-1020(2), 1104, 1128
- in /usr/src/new/kermit5.188/ckcnet.h line 345
- in /usr/src/ucb/telnet.c line 86, 1341
- in /usr/src/ucb/tn3270/tn3270.c line 70

DONT defined in line 24; used 9 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 799
- in /usr/src/libexec/telnetd/telnetd.c line 45
- in /usr/src/new/kermit5.188/ckcnet.c line 1108, 1122, 1190
- in /usr/src/new/kermit5.188/ckcnet.h line 342
- in /usr/src/ucb/ftp/ftp.c line 346
- in /usr/src/ucb/telnet.c line 87
- in /usr/src/ucb/tn3270/tn3270.c line 71

EC defined in line 31; used 5 times

- in /usr/src/libexec/telnetd/telnetd.c line 715, 1135
- in /usr/src/ucb/telnet.c line 423, 958, 1380

EL defined in line 30; used 4 times

- in /usr/src/libexec/telnetd/telnetd.c line 1135
- in /usr/src/ucb/telnet.c line 423, 955, 1381

EOR defined in line 39; used 1 times

- in /usr/src/ucb/tn3270/tn3270.c line 1263

GA defined in line 29; used 1 times

- in /usr/src/ucb/telnet.c line 1383

IAC defined in line 23; used 91 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 792, 799, 805
- in /usr/src/libexec/telnetd/telnetd.c line 44-47(4), 213, 223(2), 571, 584, 639, 698, 763, 772-773(2), 1086, 1100, 1134
- in /usr/src/new/kermit5.188/ckcnet.c line 941, 968, 1060, 1081, 1156, 1236, 1243
- in /usr/src/new/kermit5.188/ckcnet.h line 339
- in /usr/src/new/kermit5.188/ckucon.c line 840-842(2), 1029, 1180, 1202
- in /usr/src/new/kermit5.188/ckudia.c line 1041
- in /usr/src/new/kermit5.188/ckuscr.c line 204
- in /usr/src/new/kermit5.188/ckuus4.c line 1536, 1599
- in /usr/src/ucb/ftp/ftp.c line 341-346(2), 352, 1043-1045(2), 1474-1476(2), 1505-1507(2), 1549-1551(2), 1580-1582(2)
- in /usr/src/ucb/telnet.c line 86-89(4), 376, 390, 422, 947, 955-958(2), 980(2), 1037, 1167, 1176-1177(2), 1306-1307(2), 1335, 1341, 1352, 1363, 1515
- in /usr/src/ucb/tn3270/tn3270.c line 70-77(6), 632, 751, 764, 834-836(2), 881, 889-890(2), 1253-1255(3), 1262

IP defined in line 34; used 12 times

- in /usr/src/new/kermit5.188/ckucon.c line 1176-1181(2)
- in /usr/src/ucb/ftp/ftp.c line 1043, 1474, 1505, 1549, 1580
- in /usr/src/ucb/telnet.c line 1352, 1384, 1394-1396(3)

NOP defined in line 37; used 1 times

- in /usr/src/ucb/telnet.c line 1385

NTELOPTS defined in line 88; used 2 times

- in line 89
- in /usr/src/new/kermit5.188/ckcnet.h line 376

SB defined in line 28; used 8 times

- in /usr/src/libexec/telnetd/telnetd.c line 223
- in /usr/src/new/kermit5.188/ckcnet.c line 976, 1082, 1096, 1237
- in /usr/src/new/kermit5.188/ckcnet.h line 354
- in /usr/src/ucb/telnet.c line 1306
- in /usr/src/ucb/tn3270/tn3270.c line 74

SE defined in line 38; used 13 times

- in /usr/src/libexec/telnetd/telnetd.c line 223, 771, 1101
- in /usr/src/new/kermit5.188/ckcnet.c line 965, 1070, 1162, 1244
- in /usr/src/new/kermit5.188/ckcnet.h line 360
- in /usr/src/ucb/telnet.c line 391, 1175, 1307
- in /usr/src/ucb/tn3270/tn3270.c line 77, 888

SYNCH defined in line 41; used 1 times

- in /usr/src/ucb/telnet.c line 1386

TELOPT_3270REGIME defined in line 80; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 903

TELOPT_BINARY defined in line 51; used 5 times

- in /usr/src/libexec/telnetd/telnetd.c line 588, 656
- in /usr/src/ucb/tn3270/tn3270.c line 871, 1023(2)

TELOPT_BM defined in line 70; never used
TELOPT_DET defined in line 71; never used
TELOPT_ECHO defined in line 52; used 15 times

- in /usr/src/libexec/telnetd/telnetd.c line 400-401(2), 416-418(2), 836-837(2)
- in /usr/src/new/kermit5.188/ckcnet.c line 1020
- in /usr/src/new/kermit5.188/ckcnet.h line 364
- in /usr/src/ucb/telnet.c line 707, 1029, 1055, 1782-1783(2), 1792-1793(2)

TELOPT_EOR defined in line 76; never used
TELOPT_EXOPL defined in line 85; never used
TELOPT_LFLOW defined in line 84; used 2 times

- in line 88
- in /usr/src/new/kermit5.188/ckcnet.c line 911

TELOPT_LOGOUT defined in line 69; never used
TELOPT_NAMS defined in line 55; never used
TELOPT_NAOCRD defined in line 61; never used
TELOPT_NAOFFD defined in line 64; never used
TELOPT_NAOHTD defined in line 63; never used
TELOPT_NAOHTS defined in line 62; never used
TELOPT_NAOL defined in line 59; never used
TELOPT_NAOLFD defined in line 67; never used
TELOPT_NAOP defined in line 60; never used
TELOPT_NAOVTD defined in line 66; never used
TELOPT_NAOVTS defined in line 65; never used
TELOPT_NAWS defined in line 82; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 907

TELOPT_OUTMRK defined in line 78; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 899

TELOPT_RCP defined in line 53; never used
TELOPT_RCTE defined in line 58; never used
TELOPT_SGA defined in line 54; used 11 times

- in /usr/src/libexec/telnetd/telnetd.c line 403-404(2)
- in /usr/src/new/kermit5.188/ckcnet.c line 1017
- in /usr/src/new/kermit5.188/ckcnet.h line 367
- in /usr/src/ucb/telnet.c line 710, 758-759(2), 1779-1780(2), 1789-1790(2)

TELOPT_SNDLOC defined in line 74; never used
TELOPT_STATUS defined in line 56; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.h line 370

TELOPT_SUPDUP defined in line 72; used 1 times

- in /usr/src/ucb/tn3270/tn3270.c line 1450

TELOPT_SUPDUPOUTPUT defined in line 73; never used
TELOPT_TM defined in line 57; used 4 times

- in /usr/src/ucb/telnet.c line 1125, 1137, 1342-1347(2)

TELOPT_TSPEED defined in line 83; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 909

TELOPT_TTYLOC defined in line 79; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 901

TELOPT_TTYPE defined in line 75; used 18 times

- in /usr/src/libexec/telnetd/telnetd.c line 213-223(4), 844-845(2)
- in /usr/src/new/kermit5.188/ckcnet.c line 267, 1014, 1135, 1173, 1238
- in /usr/src/new/kermit5.188/ckcnet.h line 373
- in /usr/src/ucb/telnet.c line 761-762(2), 1306
- in /usr/src/ucb/tn3270/tn3270.c line 75, 897, 907

TELOPT_TUID defined in line 77; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 897

TELOPT_X3PAD defined in line 81; used 1 times

- in /usr/src/new/kermit5.188/ckcnet.c line 905

TELOPT_XASCII defined in line 68; never used
TELQUAL_IS defined in line 102; used 3 times

- in /usr/src/libexec/telnetd/telnetd.c line 980
- in /usr/src/ucb/telnet.c line 1307
- in /usr/src/ucb/tn3270/tn3270.c line 75

TELQUAL_SEND defined in line 103; used 3 times

- in /usr/src/libexec/telnetd/telnetd.c line 223
- in /usr/src/ucb/telnet.c line 1291
- in /usr/src/ucb/tn3270/tn3270.c line 898

WILL defined in line 27; used 6 times

- in /usr/src/libexec/telnetd/telnetd.c line 46
- in /usr/src/new/kermit5.188/ckcnet.c line 1014, 1140
- in /usr/src/new/kermit5.188/ckcnet.h line 351
- in /usr/src/ucb/telnet.c line 88
- in /usr/src/ucb/tn3270/tn3270.c line 72

WONT defined in line 26; used 9 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 805
- in /usr/src/libexec/telnetd/telnetd.c line 47
- in /usr/src/new/kermit5.188/ckcnet.c line 1111, 1194-1198(2)
- in /usr/src/new/kermit5.188/ckcnet.h line 348
- in /usr/src/ucb/ftp/ftp.c line 352
- in /usr/src/ucb/telnet.c line 89
- in /usr/src/ucb/tn3270/tn3270.c line 73

#### Usage of this include

telnet.h used 7 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 763
- in /usr/src/libexec/ftpd/ftpd.c line 42
- in /usr/src/libexec/telnetd/telnetd.c line 27
- in /usr/src/new/kermit5.188/ckcnet.h line 224
- in /usr/src/ucb/ftp/ftp.c line 31
- in /usr/src/ucb/telnet.c line 30
- in /usr/src/ucb/tn3270/tn3270.c line 39

Last modified: 1989-03-03 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2264 |