add terminal type telnet option
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 25 Mar 1985 05:06:05 +0000 (21:06 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 25 Mar 1985 05:06:05 +0000 (21:06 -0800)
SCCS-vsn: include/arpa/telnet.h 4.5

usr/src/include/arpa/telnet.h

index cb431b6..259ac7a 100644 (file)
@@ -1,4 +1,4 @@
-/*     telnet.h        4.4     82/03/16        */
+/*     telnet.h        4.5     85/03/24        */
 /*
  * Definitions for the TELNET protocol.
  */
 /*
  * Definitions for the TELNET protocol.
  */
@@ -45,6 +45,8 @@
 #define        TELOPT_BM       19      /* byte macro */
 #define        TELOPT_DET      20      /* data entry terminal */
 #define        TELOPT_SUPDUP   21      /* supdup protocol */
 #define        TELOPT_BM       19      /* byte macro */
 #define        TELOPT_DET      20      /* data entry terminal */
 #define        TELOPT_SUPDUP   21      /* supdup protocol */
+/* 22-23 are assigned */
+#define        TELOPT_TTYPE    24      /* terminal type */
 #define TELOPT_EXOPL   255     /* extended-options-list */
 
 #ifdef TELCMDS
 #define TELOPT_EXOPL   255     /* extended-options-list */
 
 #ifdef TELCMDS
@@ -55,11 +57,12 @@ char *telcmds[] = {
 #endif
 
 #ifdef TELOPTS
 #endif
 
 #ifdef TELOPTS
-char *telopts[] = {
+#define        NTELOPTS        25
+char *telopts[NTELOPTS] = {
        "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
        "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP",
        "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS",
        "NAOVTD", "NAOLFD", "EXTEND ASCII", "LOGOUT", "BYTE MACRO",
        "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME",
        "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP",
        "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS",
        "NAOVTD", "NAOLFD", "EXTEND ASCII", "LOGOUT", "BYTE MACRO",
-       "DATA ENTRY TERMINAL", "SUPDUP"
+       "DATA ENTRY TERMINAL", "SUPDUP", "#22", "#23", "TTYPE",
 };
 #endif
 };
 #endif