summaryrefslogtreecommitdiffstats
path: root/contrib/telnet/arpa
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2003-01-18 06:10:21 +0000
committerbillf <billf@FreeBSD.org>2003-01-18 06:10:21 +0000
commit75d164a3d8761a4cf8f87da12cc9c03b427b2069 (patch)
tree3544b6ca04a34ed5dad9ecc7f3e203c4ec0f69ec /contrib/telnet/arpa
parent93839ecd4639c86d2633481a8a917bd9f4204821 (diff)
downloadFreeBSD-src-75d164a3d8761a4cf8f87da12cc9c03b427b2069.zip
FreeBSD-src-75d164a3d8761a4cf8f87da12cc9c03b427b2069.tar.gz
add more RFC defined telnet options
Reviewed by: ps
Diffstat (limited to 'contrib/telnet/arpa')
-rw-r--r--contrib/telnet/arpa/telnet.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/telnet/arpa/telnet.h b/contrib/telnet/arpa/telnet.h
index 079119c..c937f03 100644
--- a/contrib/telnet/arpa/telnet.h
+++ b/contrib/telnet/arpa/telnet.h
@@ -121,10 +121,14 @@ extern char *telcmds[];
#define TELOPT_AUTHENTICATION 37/* Authenticate */
#define TELOPT_ENCRYPT 38 /* Encryption option */
#define TELOPT_NEW_ENVIRON 39 /* New - Environment variables */
+#define TELOPT_TN3270E 40 /* RFC2355 - TN3270 Enhancements */
+#define TELOPT_CHARSET 42 /* RFC2066 - Charset */
+#define TELOPT_COMPORT 44 /* RFC2217 - Com Port Control */
+#define TELOPT_KERMIT 47 /* RFC2840 - Kermit */
#define TELOPT_EXOPL 255 /* extended-options-list */
-#define NTELOPTS (1+TELOPT_NEW_ENVIRON)
+#define NTELOPTS (1+TELOPT_KERMIT)
#ifdef TELOPTS
const char *telopts[NTELOPTS+1] = {
"BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
@@ -136,11 +140,12 @@ const char *telopts[NTELOPTS+1] = {
"TACACS UID", "OUTPUT MARKING", "TTYLOC",
"3270 REGIME", "X.3 PAD", "NAWS", "TSPEED", "LFLOW",
"LINEMODE", "XDISPLOC", "OLD-ENVIRON", "AUTHENTICATION",
- "ENCRYPT", "NEW-ENVIRON",
+ "ENCRYPT", "NEW-ENVIRON", "TN3270E", "CHARSET", "COM-PORT",
+ "KERMIT",
0
};
#define TELOPT_FIRST TELOPT_BINARY
-#define TELOPT_LAST TELOPT_NEW_ENVIRON
+#define TELOPT_LAST TELOPT_KERMIT
#define TELOPT_OK(x) ((unsigned int)(x) <= TELOPT_LAST)
#define TELOPT(x) telopts[(x)-TELOPT_FIRST]
#endif
OpenPOWER on IntegriCloud