summaryrefslogtreecommitdiffstats
path: root/contrib/telnet/arpa
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1997-09-07 07:02:53 +0000
committermarkm <markm@FreeBSD.org>1997-09-07 07:02:53 +0000
commitcd2a6be22c3f5c010eb7ec63c77cd0699a832567 (patch)
tree316b7a514809054240510520a7e779098c17795e /contrib/telnet/arpa
parent2075d422d2e14fa0f55c71e4790fd46d0979a7a1 (diff)
downloadFreeBSD-src-cd2a6be22c3f5c010eb7ec63c77cd0699a832567.zip
FreeBSD-src-cd2a6be22c3f5c010eb7ec63c77cd0699a832567.tar.gz
Bring the FreeBSD changes to the virgin sources.
Diffstat (limited to 'contrib/telnet/arpa')
-rw-r--r--contrib/telnet/arpa/telnet.h42
1 files changed, 31 insertions, 11 deletions
diff --git a/contrib/telnet/arpa/telnet.h b/contrib/telnet/arpa/telnet.h
index 10155a8..01601f1 100644
--- a/contrib/telnet/arpa/telnet.h
+++ b/contrib/telnet/arpa/telnet.h
@@ -33,8 +33,8 @@
* @(#)telnet.h 8.2 (Berkeley) 12/15/93
*/
-#ifndef _TELNET_H_
-#define _TELNET_H_
+#ifndef _ARPA_TELNET_H_
+#define _ARPA_TELNET_H_
/*
* Definitions for the TELNET protocol.
@@ -66,7 +66,8 @@
char *telcmds[] = {
"EOF", "SUSP", "ABORT", "EOR",
"SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC",
- "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC", 0,
+ "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC",
+ 0
};
#else
extern char *telcmds[];
@@ -135,7 +136,7 @@ char *telopts[NTELOPTS+1] = {
"3270 REGIME", "X.3 PAD", "NAWS", "TSPEED", "LFLOW",
"LINEMODE", "XDISPLOC", "OLD-ENVIRON", "AUTHENTICATION",
"ENCRYPT", "NEW-ENVIRON",
- 0,
+ 0
};
#define TELOPT_FIRST TELOPT_BINARY
#define TELOPT_LAST TELOPT_NEW_ENVIRON
@@ -196,8 +197,20 @@ char *telopts[NTELOPTS+1] = {
#define SLC_XOFF 16
#define SLC_FORW1 17
#define SLC_FORW2 18
-
-#define NSLC 18
+#define SLC_MCL 19
+#define SLC_MCR 20
+#define SLC_MCWL 21
+#define SLC_MCWR 22
+#define SLC_MCBOL 23
+#define SLC_MCEOL 24
+#define SLC_INSRT 25
+#define SLC_OVER 26
+#define SLC_ECR 27
+#define SLC_EWR 28
+#define SLC_EBOL 29
+#define SLC_EEOL 30
+
+#define NSLC 30
/*
* For backwards compatability, we define SLC_NAMES to be the
@@ -205,7 +218,12 @@ char *telopts[NTELOPTS+1] = {
*/
#define SLC_NAMELIST "0", "SYNCH", "BRK", "IP", "AO", "AYT", "EOR", \
"ABORT", "EOF", "SUSP", "EC", "EL", "EW", "RP", \
- "LNEXT", "XON", "XOFF", "FORW1", "FORW2", 0,
+ "LNEXT", "XON", "XOFF", "FORW1", "FORW2", \
+ "MCL", "MCR", "MCWL", "MCWR", "MCBOL", \
+ "MCEOL", "INSRT", "OVER", "ECR", "EWR", \
+ "EBOL", "EEOL", \
+ 0
+
#ifdef SLC_NAMES
char *slc_names[] = {
SLC_NAMELIST
@@ -268,7 +286,8 @@ extern char *slc_names[];
#ifdef AUTH_NAMES
char *authtype_names[] = {
- "NULL", "KERBEROS_V4", "KERBEROS_V5", "SPX", "MINK", 0,
+ "NULL", "KERBEROS_V4", "KERBEROS_V5", "SPX", "MINK",
+ 0
};
#else
extern char *authtype_names[];
@@ -286,7 +305,7 @@ extern char *authtype_names[];
#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_REQEND 6 /* Request you end encrypting */
#define ENCRYPT_ENC_KEYID 7
#define ENCRYPT_DEC_KEYID 8
#define ENCRYPT_CNT 9
@@ -300,10 +319,11 @@ extern char *authtype_names[];
char *encrypt_names[] = {
"IS", "SUPPORT", "REPLY", "START", "END",
"REQUEST-START", "REQUEST-END", "ENC-KEYID", "DEC-KEYID",
- 0,
+ 0
};
char *enctype_names[] = {
- "ANY", "DES_CFB64", "DES_OFB64", 0,
+ "ANY", "DES_CFB64", "DES_OFB64",
+ 0
};
#else
extern char *encrypt_names[];
OpenPOWER on IntegriCloud