aboutsummaryrefslogtreecommitdiffstats
path: root/libtelnet.h
diff options
context:
space:
mode:
authorSean Middleditch <sean@middleditch.us>2009-03-22 22:21:42 -0400
committerSean Middleditch <sean@middleditch.us>2009-03-22 22:21:42 -0400
commit2d5c499c368e7706666e1b2260128c8c015dd0b1 (patch)
tree6939292aeeaf6e8ba2ea3c11ca366291ae92c0da /libtelnet.h
parent1e80f52f8048878f25290a03db9d3e8e3b475930 (diff)
support ttype/environ/new-environ/mssp parsing (using alloca; fixme?)
Diffstat (limited to 'libtelnet.h')
-rw-r--r--libtelnet.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libtelnet.h b/libtelnet.h
index 48b400f..6a26fdb 100644
--- a/libtelnet.h
+++ b/libtelnet.h
@@ -96,6 +96,21 @@ typedef struct telnet_telopt_t telnet_telopt_t;
#define TELNET_TELOPT_MCCP2 86
+/* special codes for the subnegotiation commands for certain telopts */
+#define TELNET_TTYPE_IS 0
+#define TELNET_TTYPE_SEND 1
+
+#define TELNET_ENVIRON_IS 0
+#define TELNET_ENVIRON_SEND 1
+#define TELNET_ENVIRON_INFO 2
+#define TELNET_ENVIRON_VAR 0
+#define TELNET_ENVIRON_VALUE 1
+#define TELNET_ENVIRON_ESC 2
+#define TELNET_ENVIRON_USERVAR 3
+
+#define TELNET_MSSP_VAR 1
+#define TELNET_MSSP_VAL 2
+
/* libtelnet feature flags */
#define TELNET_FLAG_PROXY (1<<0)