source: trunk/minix/commands/telnetd/telnet.h@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 3.0 KB
Line 
1/*
2 * TNET A server program for MINIX which implements the TCP/IP
3 * suite of networking protocols. It is based on the
4 * TCP/IP code written by Phil Karn et al, as found in
5 * his NET package for Packet Radio communications.
6 *
7 * Definitions for the TELNET protocol (see RFC XXX).
8 *
9 * Version: @(#)arpa/telnet.h 1.00 07/02/92
10 *
11 * Authors: Original taken from BSD 4.3/TAHOE.
12 * Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
13 */
14#ifndef _ARPA_TELNET_H
15#define _ARPA_TELNET_H
16
17#define IAC 255 /* interpret as command: */
18#define DONT 254 /* you are not to use option */
19#define DO 253 /* please, you use option */
20#define WONT 252 /* I won't use option */
21#define WILL 251 /* I will use option */
22#define SB 250 /* interpret as subnegotiation */
23#define GA 249 /* you may reverse the line */
24#define EL 248 /* erase the current line */
25#define EC 247 /* erase the current character */
26#define AYT 246 /* are you there */
27#define AO 245 /* abort output--but let prog finish */
28#define IP 244 /* interrupt process--permanently */
29#define BREAK 243 /* break */
30#define DM 242 /* data mark--for connect. cleaning */
31#define NOP 241 /* nop */
32#define SE 240 /* end sub negotiation */
33#define EOR 239 /* end of record (transparent mode) */
34
35#define SYNCH 242 /* for telfunc calls */
36
37/* Telnet options. */
38#define TELOPT_BINARY 0 /* 8-bit data path */
39#define TELOPT_ECHO 1 /* echo */
40#define TELOPT_RCP 2 /* prepare to reconnect */
41#define TELOPT_SGA 3 /* suppress go ahead */
42#define TELOPT_NAMS 4 /* approximate message size */
43#define TELOPT_STATUS 5 /* give status */
44#define TELOPT_TM 6 /* timing mark */
45#define TELOPT_RCTE 7 /* remote controlled transmission and echo */
46#define TELOPT_NAOL 8 /* negotiate about output line width */
47#define TELOPT_NAOP 9 /* negotiate about output page size */
48#define TELOPT_NAOCRD 10 /* negotiate about CR disposition */
49#define TELOPT_NAOHTS 11 /* negotiate about horizontal tabstops */
50#define TELOPT_NAOHTD 12 /* negotiate about horizontal tab disposition */
51#define TELOPT_NAOFFD 13 /* negotiate about formfeed disposition */
52#define TELOPT_NAOVTS 14 /* negotiate about vertical tab stops */
53#define TELOPT_NAOVTD 15 /* negotiate about vertical tab disposition */
54#define TELOPT_NAOLFD 16 /* negotiate about output LF disposition */
55#define TELOPT_XASCII 17 /* extended ascic character set */
56#define TELOPT_LOGOUT 18 /* force logout */
57#define TELOPT_BM 19 /* byte macro */
58#define TELOPT_DET 20 /* data entry terminal */
59#define TELOPT_SUPDUP 21 /* supdup protocol */
60#define TELOPT_SUPDUPOUTPUT 22 /* supdup output */
61#define TELOPT_SNDLOC 23 /* send location */
62#define TELOPT_TTYPE 24 /* terminal type */
63#define TELOPT_EOR 25 /* end or record */
64#define TELOPT_WINCH 31 /* window size */
65#define TELOPT_EXOPL 255 /* extended-options-list */
66
67/* Sub-option qualifiers. */
68#define TELQUAL_IS 0 /* option is... */
69#define TELQUAL_SEND 1 /* send option */
70
71#endif /* _ARPA_TELNET_H */
Note: See TracBrowser for help on using the repository browser.