summaryrefslogtreecommitdiffstats
path: root/microcom.h
diff options
context:
space:
mode:
Diffstat (limited to 'microcom.h')
-rw-r--r--microcom.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/microcom.h b/microcom.h
index e077ee5..e8ed544 100644
--- a/microcom.h
+++ b/microcom.h
@@ -120,8 +120,17 @@ int do_script(char *script);
#define dbg_printf(fmt,args...) ({ if (debug) printf(fmt ,##args); })
+/*
+ * Some telnet options according to
+ * https://www.iana.org/assignments/telnet-options/telnet-options.xhtmls
+ */
+
+#define TELNET_OPTION_BINARY_TRANSMISSION 0
+#define TELNET_OPTION_ECHO 1
+#define TELNET_OPTION_SUPPRESS_GO_AHEAD 3
+#define TELNET_OPTION_COM_PORT_CONTROL 44
+
/* RFC2217 */
-#define COM_PORT_OPTION 44
#define SET_BAUDRATE_CS 1
#define SET_DATASIZE_CS 2
#define SET_PARITY_CS 3