date and time created 83/01/21 11:13:43 by dlw
[unix-history] / usr / src / include / arpa / telnet.h
CommitLineData
c8d0eb0d 1/* telnet.h 4.4 82/03/16 */
89e49f55
BJ
2/*
3 * Definitions for the TELNET protocol.
4 */
5#define IAC 255 /* interpret as command: */
6#define DONT 254 /* you are not to use option */
7#define DO 253 /* please, you use option */
8#define WONT 252 /* I won't use option */
9#define WILL 251 /* I will use option */
10#define SB 250 /* interpret as subnegotiation */
11#define GA 249 /* you may reverse the line */
12#define EL 248 /* erase the current line */
13#define EC 247 /* erase the current character */
14#define AYT 246 /* are you there */
15#define AO 245 /* abort output--but let prog finish */
16#define IP 244 /* interrupt process--permanently */
17#define BREAK 243 /* break */
18#define DM 242 /* data mark--for connect. cleaning */
19#define NOP 241 /* nop */
20#define SE 240 /* end sub negotiation */
21
22#define SYNCH 242 /* for telfunc calls */
23
24/* telnet options */
25
26#define TELOPT_BINARY 0 /* 8-bit data path */
27#define TELOPT_ECHO 1 /* echo */
8f6b89f5
SL
28#define TELOPT_RCP 2 /* prepare to reconnect */
29#define TELOPT_SGA 3 /* suppress go ahead */
30#define TELOPT_NAMS 4 /* approximate message size */
31#define TELOPT_STATUS 5 /* give status */
32#define TELOPT_TM 6 /* timing mark */
33#define TELOPT_RCTE 7 /* remote controlled transmission and echo */
34#define TELOPT_NAOL 8 /* negotiate about output line width */
35#define TELOPT_NAOP 9 /* negotiate about output page size */
36#define TELOPT_NAOCRD 10 /* negotiate about CR disposition */
37#define TELOPT_NAOHTS 11 /* negotiate about horizontal tabstops */
38#define TELOPT_NAOHTD 12 /* negotiate about horizontal tab disposition */
39#define TELOPT_NAOFFD 13 /* negotiate about formfeed disposition */
40#define TELOPT_NAOVTS 14 /* negotiate about vertical tab stops */
41#define TELOPT_NAOVTD 15 /* negotiate about vertical tab disposition */
42#define TELOPT_NAOLFD 16 /* negotiate about output LF disposition */
43#define TELOPT_XASCII 17 /* extended ascic character set */
44#define TELOPT_LOGOUT 18 /* force logout */
45#define TELOPT_BM 19 /* byte macro */
46#define TELOPT_DET 20 /* data entry terminal */
47#define TELOPT_SUPDUP 21 /* supdup protocol */
48#define TELOPT_EXOPL 255 /* extended-options-list */
89e49f55
BJ
49
50#ifdef TELCMDS
51char *telcmds[] = {
52 "SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC",
53 "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC",
54};
55#endif
56
57#ifdef TELOPTS
58char *telopts[] = {
59 "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
60 "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP",
61 "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS",
8f6b89f5
SL
62 "NAOVTD", "NAOLFD", "EXTEND ASCII", "LOGOUT", "BYTE MACRO",
63 "DATA ENTRY TERMINAL", "SUPDUP"
89e49f55
BJ
64};
65#endif