Back to index

glibc  2.9
Defines | Variables
telnet.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IAC   255 /* interpret as command: */
#define DONT   254 /* you are not to use option */
#define DO   253 /* please, you use option */
#define WONT   252 /* I won't use option */
#define WILL   251 /* I will use option */
#define SB   250 /* interpret as subnegotiation */
#define GA   249 /* you may reverse the line */
#define EL   248 /* erase the current line */
#define EC   247 /* erase the current character */
#define AYT   246 /* are you there */
#define AO   245 /* abort output--but let prog finish */
#define IP   244 /* interrupt process--permanently */
#define BREAK   243 /* break */
#define DM   242 /* data mark--for connect. cleaning */
#define NOP   241 /* nop */
#define SE   240 /* end sub negotiation */
#define EOR   239 /* end of record (transparent mode) */
#define ABORT   238 /* Abort process */
#define SUSP   237 /* Suspend process */
#define xEOF   236 /* End of file: EOF is already used... */
#define SYNCH   242 /* for telfunc calls */
#define TELCMD_FIRST   xEOF
#define TELCMD_LAST   IAC
#define TELCMD_OK(x)
#define TELCMD(x)   telcmds[(x)-TELCMD_FIRST]
#define TELOPT_BINARY   0 /* 8-bit data path */
#define TELOPT_ECHO   1 /* echo */
#define TELOPT_RCP   2 /* prepare to reconnect */
#define TELOPT_SGA   3 /* suppress go ahead */
#define TELOPT_NAMS   4 /* approximate message size */
#define TELOPT_STATUS   5 /* give status */
#define TELOPT_TM   6 /* timing mark */
#define TELOPT_RCTE   7 /* remote controlled transmission and echo */
#define TELOPT_NAOL   8 /* negotiate about output line width */
#define TELOPT_NAOP   9 /* negotiate about output page size */
#define TELOPT_NAOCRD   10 /* negotiate about CR disposition */
#define TELOPT_NAOHTS   11 /* negotiate about horizontal tabstops */
#define TELOPT_NAOHTD   12 /* negotiate about horizontal tab disposition */
#define TELOPT_NAOFFD   13 /* negotiate about formfeed disposition */
#define TELOPT_NAOVTS   14 /* negotiate about vertical tab stops */
#define TELOPT_NAOVTD   15 /* negotiate about vertical tab disposition */
#define TELOPT_NAOLFD   16 /* negotiate about output LF disposition */
#define TELOPT_XASCII   17 /* extended ascii character set */
#define TELOPT_LOGOUT   18 /* force logout */
#define TELOPT_BM   19 /* byte macro */
#define TELOPT_DET   20 /* data entry terminal */
#define TELOPT_SUPDUP   21 /* supdup protocol */
#define TELOPT_SUPDUPOUTPUT   22 /* supdup output */
#define TELOPT_SNDLOC   23 /* send location */
#define TELOPT_TTYPE   24 /* terminal type */
#define TELOPT_EOR   25 /* end or record */
#define TELOPT_TUID   26 /* TACACS user identification */
#define TELOPT_OUTMRK   27 /* output marking */
#define TELOPT_TTYLOC   28 /* terminal location number */
#define TELOPT_3270REGIME   29 /* 3270 regime */
#define TELOPT_X3PAD   30 /* X.3 PAD */
#define TELOPT_NAWS   31 /* window size */
#define TELOPT_TSPEED   32 /* terminal speed */
#define TELOPT_LFLOW   33 /* remote flow control */
#define TELOPT_LINEMODE   34 /* Linemode option */
#define TELOPT_XDISPLOC   35 /* X Display Location */
#define TELOPT_OLD_ENVIRON   36 /* Old - Environment variables */
#define TELOPT_AUTHENTICATION   37/* Authenticate */
#define TELOPT_ENCRYPT   38 /* Encryption option */
#define TELOPT_NEW_ENVIRON   39 /* New - Environment variables */
#define TELOPT_EXOPL   255 /* extended-options-list */
#define NTELOPTS   (1+TELOPT_NEW_ENVIRON)
#define TELQUAL_IS   0 /* option is... */
#define TELQUAL_SEND   1 /* send option */
#define TELQUAL_INFO   2 /* ENVIRON: informational version of IS */
#define TELQUAL_REPLY   2 /* AUTHENTICATION: client version of IS */
#define TELQUAL_NAME   3 /* AUTHENTICATION: client version of IS */
#define LFLOW_OFF   0 /* Disable remote flow control */
#define LFLOW_ON   1 /* Enable remote flow control */
#define LFLOW_RESTART_ANY   2 /* Restart output on any char */
#define LFLOW_RESTART_XON   3 /* Restart output only on XON */
#define LM_MODE   1
#define LM_FORWARDMASK   2
#define LM_SLC   3
#define MODE_EDIT   0x01
#define MODE_TRAPSIG   0x02
#define MODE_ACK   0x04
#define MODE_SOFT_TAB   0x08
#define MODE_LIT_ECHO   0x10
#define MODE_MASK   0x1f
#define MODE_FLOW   0x0100
#define MODE_ECHO   0x0200
#define MODE_INBIN   0x0400
#define MODE_OUTBIN   0x0800
#define MODE_FORCE   0x1000
#define SLC_SYNCH   1
#define SLC_BRK   2
#define SLC_IP   3
#define SLC_AO   4
#define SLC_AYT   5
#define SLC_EOR   6
#define SLC_ABORT   7
#define SLC_EOF   8
#define SLC_SUSP   9
#define SLC_EC   10
#define SLC_EL   11
#define SLC_EW   12
#define SLC_RP   13
#define SLC_LNEXT   14
#define SLC_XON   15
#define SLC_XOFF   16
#define SLC_FORW1   17
#define SLC_FORW2   18
#define NSLC   18
#define SLC_NAMELIST
#define SLC_NAMES   SLC_NAMELIST
#define SLC_NAME_OK(x)   ((unsigned int)(x) <= NSLC)
#define SLC_NAME(x)   slc_names[x]
#define SLC_NOSUPPORT   0
#define SLC_CANTCHANGE   1
#define SLC_VARIABLE   2
#define SLC_DEFAULT   3
#define SLC_LEVELBITS   0x03
#define SLC_FUNC   0
#define SLC_FLAGS   1
#define SLC_VALUE   2
#define SLC_ACK   0x80
#define SLC_FLUSHIN   0x40
#define SLC_FLUSHOUT   0x20
#define OLD_ENV_VAR   1
#define OLD_ENV_VALUE   0
#define NEW_ENV_VAR   0
#define NEW_ENV_VALUE   1
#define ENV_ESC   2
#define ENV_USERVAR   3
#define AUTH_WHO_CLIENT   0 /* Client authenticating server */
#define AUTH_WHO_SERVER   1 /* Server authenticating client */
#define AUTH_WHO_MASK   1
#define AUTH_HOW_ONE_WAY   0
#define AUTH_HOW_MUTUAL   2
#define AUTH_HOW_MASK   2
#define AUTHTYPE_NULL   0
#define AUTHTYPE_KERBEROS_V4   1
#define AUTHTYPE_KERBEROS_V5   2
#define AUTHTYPE_SPX   3
#define AUTHTYPE_MINK   4
#define AUTHTYPE_CNT   5
#define AUTHTYPE_TEST   99
#define AUTHTYPE_NAME_OK(x)   ((unsigned int)(x) < AUTHTYPE_CNT)
#define AUTHTYPE_NAME(x)   authtype_names[x]
#define ENCRYPT_IS   0 /* I pick encryption type ... */
#define ENCRYPT_SUPPORT   1 /* I support encryption types ... */
#define ENCRYPT_REPLY   2 /* Initial setup response */
#define ENCRYPT_START   3 /* Am starting to send encrypted */
#define ENCRYPT_END   4 /* Am ending encrypted */
#define ENCRYPT_REQSTART   5 /* Request you start encrypting */
#define ENCRYPT_REQEND   6 /* Request you send encrypting */
#define ENCRYPT_ENC_KEYID   7
#define ENCRYPT_DEC_KEYID   8
#define ENCRYPT_CNT   9
#define ENCTYPE_ANY   0
#define ENCTYPE_DES_CFB64   1
#define ENCTYPE_DES_OFB64   2
#define ENCTYPE_CNT   3
#define ENCRYPT_NAME_OK(x)   ((unsigned int)(x) < ENCRYPT_CNT)
#define ENCRYPT_NAME(x)   encrypt_names[x]
#define ENCTYPE_NAME_OK(x)   ((unsigned int)(x) < ENCTYPE_CNT)
#define ENCTYPE_NAME(x)   enctype_names[x]

Variables

char * telcmds []
char * slc_names []
char * authtype_names []
char * encrypt_names []
char * enctype_names []

Define Documentation

#define ABORT   238 /* Abort process */

Definition at line 55 of file telnet.h.

#define AO   245 /* abort output--but let prog finish */

Definition at line 48 of file telnet.h.

#define AUTH_HOW_MASK   2

Definition at line 254 of file telnet.h.

#define AUTH_HOW_MUTUAL   2

Definition at line 253 of file telnet.h.

#define AUTH_HOW_ONE_WAY   0

Definition at line 252 of file telnet.h.

#define AUTH_WHO_CLIENT   0 /* Client authenticating server */

Definition at line 245 of file telnet.h.

#define AUTH_WHO_MASK   1

Definition at line 247 of file telnet.h.

#define AUTH_WHO_SERVER   1 /* Server authenticating client */

Definition at line 246 of file telnet.h.

#define AUTHTYPE_CNT   5

Definition at line 261 of file telnet.h.

#define AUTHTYPE_KERBEROS_V4   1

Definition at line 257 of file telnet.h.

#define AUTHTYPE_KERBEROS_V5   2

Definition at line 258 of file telnet.h.

#define AUTHTYPE_MINK   4

Definition at line 260 of file telnet.h.

#define AUTHTYPE_NAME (   x)    authtype_names[x]

Definition at line 274 of file telnet.h.

#define AUTHTYPE_NAME_OK (   x)    ((unsigned int)(x) < AUTHTYPE_CNT)

Definition at line 273 of file telnet.h.

#define AUTHTYPE_NULL   0

Definition at line 256 of file telnet.h.

#define AUTHTYPE_SPX   3

Definition at line 259 of file telnet.h.

#define AUTHTYPE_TEST   99

Definition at line 263 of file telnet.h.

#define AYT   246 /* are you there */

Definition at line 47 of file telnet.h.

#define BREAK   243 /* break */

Definition at line 50 of file telnet.h.

#define DM   242 /* data mark--for connect. cleaning */

Definition at line 51 of file telnet.h.

#define DO   253 /* please, you use option */

Definition at line 40 of file telnet.h.

#define DONT   254 /* you are not to use option */

Definition at line 39 of file telnet.h.

#define EC   247 /* erase the current character */

Definition at line 46 of file telnet.h.

#define EL   248 /* erase the current line */

Definition at line 45 of file telnet.h.

#define ENCRYPT_CNT   9

Definition at line 288 of file telnet.h.

#define ENCRYPT_DEC_KEYID   8

Definition at line 287 of file telnet.h.

#define ENCRYPT_ENC_KEYID   7

Definition at line 286 of file telnet.h.

#define ENCRYPT_END   4 /* Am ending encrypted */

Definition at line 283 of file telnet.h.

#define ENCRYPT_IS   0 /* I pick encryption type ... */

Definition at line 279 of file telnet.h.

#define ENCRYPT_NAME (   x)    encrypt_names[x]

Definition at line 311 of file telnet.h.

#define ENCRYPT_NAME_OK (   x)    ((unsigned int)(x) < ENCRYPT_CNT)

Definition at line 310 of file telnet.h.

#define ENCRYPT_REPLY   2 /* Initial setup response */

Definition at line 281 of file telnet.h.

#define ENCRYPT_REQEND   6 /* Request you send encrypting */

Definition at line 285 of file telnet.h.

#define ENCRYPT_REQSTART   5 /* Request you start encrypting */

Definition at line 284 of file telnet.h.

#define ENCRYPT_START   3 /* Am starting to send encrypted */

Definition at line 282 of file telnet.h.

#define ENCRYPT_SUPPORT   1 /* I support encryption types ... */

Definition at line 280 of file telnet.h.

#define ENCTYPE_ANY   0

Definition at line 290 of file telnet.h.

#define ENCTYPE_CNT   3

Definition at line 293 of file telnet.h.

#define ENCTYPE_DES_CFB64   1

Definition at line 291 of file telnet.h.

#define ENCTYPE_DES_OFB64   2

Definition at line 292 of file telnet.h.

#define ENCTYPE_NAME (   x)    enctype_names[x]

Definition at line 314 of file telnet.h.

#define ENCTYPE_NAME_OK (   x)    ((unsigned int)(x) < ENCTYPE_CNT)

Definition at line 313 of file telnet.h.

#define ENV_ESC   2

Definition at line 235 of file telnet.h.

#define ENV_USERVAR   3

Definition at line 236 of file telnet.h.

#define EOR   239 /* end of record (transparent mode) */

Definition at line 54 of file telnet.h.

#define GA   249 /* you may reverse the line */

Definition at line 44 of file telnet.h.

#define IAC   255 /* interpret as command: */

Definition at line 38 of file telnet.h.

#define IP   244 /* interrupt process--permanently */

Definition at line 49 of file telnet.h.

#define LFLOW_OFF   0 /* Disable remote flow control */

Definition at line 149 of file telnet.h.

#define LFLOW_ON   1 /* Enable remote flow control */

Definition at line 150 of file telnet.h.

#define LFLOW_RESTART_ANY   2 /* Restart output on any char */

Definition at line 151 of file telnet.h.

#define LFLOW_RESTART_XON   3 /* Restart output only on XON */

Definition at line 152 of file telnet.h.

#define LM_FORWARDMASK   2

Definition at line 159 of file telnet.h.

#define LM_MODE   1

Definition at line 158 of file telnet.h.

#define LM_SLC   3

Definition at line 160 of file telnet.h.

#define MODE_ACK   0x04

Definition at line 164 of file telnet.h.

#define MODE_ECHO   0x0200

Definition at line 172 of file telnet.h.

#define MODE_EDIT   0x01

Definition at line 162 of file telnet.h.

#define MODE_FLOW   0x0100

Definition at line 171 of file telnet.h.

#define MODE_FORCE   0x1000

Definition at line 175 of file telnet.h.

#define MODE_INBIN   0x0400

Definition at line 173 of file telnet.h.

#define MODE_LIT_ECHO   0x10

Definition at line 166 of file telnet.h.

#define MODE_MASK   0x1f

Definition at line 168 of file telnet.h.

#define MODE_OUTBIN   0x0800

Definition at line 174 of file telnet.h.

#define MODE_SOFT_TAB   0x08

Definition at line 165 of file telnet.h.

#define MODE_TRAPSIG   0x02

Definition at line 163 of file telnet.h.

#define NEW_ENV_VALUE   1

Definition at line 234 of file telnet.h.

#define NEW_ENV_VAR   0

Definition at line 233 of file telnet.h.

#define NOP   241 /* nop */

Definition at line 52 of file telnet.h.

#define NSLC   18

Definition at line 196 of file telnet.h.

#define NTELOPTS   (1+TELOPT_NEW_ENVIRON)

Definition at line 121 of file telnet.h.

#define OLD_ENV_VALUE   0

Definition at line 232 of file telnet.h.

#define OLD_ENV_VAR   1

Definition at line 231 of file telnet.h.

#define SB   250 /* interpret as subnegotiation */

Definition at line 43 of file telnet.h.

#define SE   240 /* end sub negotiation */

Definition at line 53 of file telnet.h.

#define SLC_ABORT   7

Definition at line 183 of file telnet.h.

#define SLC_ACK   0x80

Definition at line 227 of file telnet.h.

#define SLC_AO   4

Definition at line 180 of file telnet.h.

#define SLC_AYT   5

Definition at line 181 of file telnet.h.

#define SLC_BRK   2

Definition at line 178 of file telnet.h.

#define SLC_CANTCHANGE   1

Definition at line 218 of file telnet.h.

#define SLC_DEFAULT   3

Definition at line 220 of file telnet.h.

#define SLC_EC   10

Definition at line 186 of file telnet.h.

#define SLC_EL   11

Definition at line 187 of file telnet.h.

#define SLC_EOF   8

Definition at line 184 of file telnet.h.

#define SLC_EOR   6

Definition at line 182 of file telnet.h.

#define SLC_EW   12

Definition at line 188 of file telnet.h.

#define SLC_FLAGS   1

Definition at line 224 of file telnet.h.

#define SLC_FLUSHIN   0x40

Definition at line 228 of file telnet.h.

#define SLC_FLUSHOUT   0x20

Definition at line 229 of file telnet.h.

#define SLC_FORW1   17

Definition at line 193 of file telnet.h.

#define SLC_FORW2   18

Definition at line 194 of file telnet.h.

#define SLC_FUNC   0

Definition at line 223 of file telnet.h.

#define SLC_IP   3

Definition at line 179 of file telnet.h.

#define SLC_LEVELBITS   0x03

Definition at line 221 of file telnet.h.

#define SLC_LNEXT   14

Definition at line 190 of file telnet.h.

#define SLC_NAME (   x)    slc_names[x]

Definition at line 215 of file telnet.h.

#define SLC_NAME_OK (   x)    ((unsigned int)(x) <= NSLC)

Definition at line 214 of file telnet.h.

#define SLC_NAMELIST
Value:
"0", "SYNCH", "BRK", "IP", "AO", "AYT", "EOR", \
                     "ABORT", "EOF", "SUSP", "EC", "EL", "EW", "RP", \
                     "LNEXT", "XON", "XOFF", "FORW1", "FORW2", 0,

Definition at line 202 of file telnet.h.

#define SLC_NAMES   SLC_NAMELIST

Definition at line 211 of file telnet.h.

#define SLC_NOSUPPORT   0

Definition at line 217 of file telnet.h.

#define SLC_RP   13

Definition at line 189 of file telnet.h.

#define SLC_SUSP   9

Definition at line 185 of file telnet.h.

#define SLC_SYNCH   1

Definition at line 177 of file telnet.h.

#define SLC_VALUE   2

Definition at line 225 of file telnet.h.

#define SLC_VARIABLE   2

Definition at line 219 of file telnet.h.

#define SLC_XOFF   16

Definition at line 192 of file telnet.h.

#define SLC_XON   15

Definition at line 191 of file telnet.h.

#define SUSP   237 /* Suspend process */

Definition at line 56 of file telnet.h.

#define SYNCH   242 /* for telfunc calls */

Definition at line 59 of file telnet.h.

#define TELCMD (   x)    telcmds[(x)-TELCMD_FIRST]

Definition at line 75 of file telnet.h.

#define TELCMD_FIRST   xEOF

Definition at line 71 of file telnet.h.

#define TELCMD_LAST   IAC

Definition at line 72 of file telnet.h.

#define TELCMD_OK (   x)
Value:
((unsigned int)(x) <= TELCMD_LAST && \
                      (unsigned int)(x) >= TELCMD_FIRST)

Definition at line 73 of file telnet.h.

#define TELOPT_3270REGIME   29 /* 3270 regime */

Definition at line 107 of file telnet.h.

#define TELOPT_AUTHENTICATION   37/* Authenticate */

Definition at line 115 of file telnet.h.

#define TELOPT_BINARY   0 /* 8-bit data path */

Definition at line 78 of file telnet.h.

#define TELOPT_BM   19 /* byte macro */

Definition at line 97 of file telnet.h.

#define TELOPT_DET   20 /* data entry terminal */

Definition at line 98 of file telnet.h.

#define TELOPT_ECHO   1 /* echo */

Definition at line 79 of file telnet.h.

#define TELOPT_ENCRYPT   38 /* Encryption option */

Definition at line 116 of file telnet.h.

#define TELOPT_EOR   25 /* end or record */

Definition at line 103 of file telnet.h.

#define TELOPT_EXOPL   255 /* extended-options-list */

Definition at line 118 of file telnet.h.

#define TELOPT_LFLOW   33 /* remote flow control */

Definition at line 111 of file telnet.h.

#define TELOPT_LINEMODE   34 /* Linemode option */

Definition at line 112 of file telnet.h.

#define TELOPT_LOGOUT   18 /* force logout */

Definition at line 96 of file telnet.h.

#define TELOPT_NAMS   4 /* approximate message size */

Definition at line 82 of file telnet.h.

#define TELOPT_NAOCRD   10 /* negotiate about CR disposition */

Definition at line 88 of file telnet.h.

#define TELOPT_NAOFFD   13 /* negotiate about formfeed disposition */

Definition at line 91 of file telnet.h.

#define TELOPT_NAOHTD   12 /* negotiate about horizontal tab disposition */

Definition at line 90 of file telnet.h.

#define TELOPT_NAOHTS   11 /* negotiate about horizontal tabstops */

Definition at line 89 of file telnet.h.

#define TELOPT_NAOL   8 /* negotiate about output line width */

Definition at line 86 of file telnet.h.

#define TELOPT_NAOLFD   16 /* negotiate about output LF disposition */

Definition at line 94 of file telnet.h.

#define TELOPT_NAOP   9 /* negotiate about output page size */

Definition at line 87 of file telnet.h.

#define TELOPT_NAOVTD   15 /* negotiate about vertical tab disposition */

Definition at line 93 of file telnet.h.

#define TELOPT_NAOVTS   14 /* negotiate about vertical tab stops */

Definition at line 92 of file telnet.h.

#define TELOPT_NAWS   31 /* window size */

Definition at line 109 of file telnet.h.

#define TELOPT_NEW_ENVIRON   39 /* New - Environment variables */

Definition at line 117 of file telnet.h.

#define TELOPT_OLD_ENVIRON   36 /* Old - Environment variables */

Definition at line 114 of file telnet.h.

#define TELOPT_OUTMRK   27 /* output marking */

Definition at line 105 of file telnet.h.

#define TELOPT_RCP   2 /* prepare to reconnect */

Definition at line 80 of file telnet.h.

#define TELOPT_RCTE   7 /* remote controlled transmission and echo */

Definition at line 85 of file telnet.h.

#define TELOPT_SGA   3 /* suppress go ahead */

Definition at line 81 of file telnet.h.

#define TELOPT_SNDLOC   23 /* send location */

Definition at line 101 of file telnet.h.

#define TELOPT_STATUS   5 /* give status */

Definition at line 83 of file telnet.h.

#define TELOPT_SUPDUP   21 /* supdup protocol */

Definition at line 99 of file telnet.h.

#define TELOPT_SUPDUPOUTPUT   22 /* supdup output */

Definition at line 100 of file telnet.h.

#define TELOPT_TM   6 /* timing mark */

Definition at line 84 of file telnet.h.

#define TELOPT_TSPEED   32 /* terminal speed */

Definition at line 110 of file telnet.h.

#define TELOPT_TTYLOC   28 /* terminal location number */

Definition at line 106 of file telnet.h.

#define TELOPT_TTYPE   24 /* terminal type */

Definition at line 102 of file telnet.h.

#define TELOPT_TUID   26 /* TACACS user identification */

Definition at line 104 of file telnet.h.

#define TELOPT_X3PAD   30 /* X.3 PAD */

Definition at line 108 of file telnet.h.

#define TELOPT_XASCII   17 /* extended ascii character set */

Definition at line 95 of file telnet.h.

#define TELOPT_XDISPLOC   35 /* X Display Location */

Definition at line 113 of file telnet.h.

#define TELQUAL_INFO   2 /* ENVIRON: informational version of IS */

Definition at line 145 of file telnet.h.

#define TELQUAL_IS   0 /* option is... */

Definition at line 143 of file telnet.h.

#define TELQUAL_NAME   3 /* AUTHENTICATION: client version of IS */

Definition at line 147 of file telnet.h.

#define TELQUAL_REPLY   2 /* AUTHENTICATION: client version of IS */

Definition at line 146 of file telnet.h.

#define TELQUAL_SEND   1 /* send option */

Definition at line 144 of file telnet.h.

#define WILL   251 /* I will use option */

Definition at line 42 of file telnet.h.

#define WONT   252 /* I won't use option */

Definition at line 41 of file telnet.h.

#define xEOF   236 /* End of file: EOF is already used... */

Definition at line 57 of file telnet.h.


Variable Documentation

char* authtype_names[]
char* encrypt_names[]
char* enctype_names[]
char* slc_names[]
char* telcmds[]