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