summaryrefslogtreecommitdiffstats
path: root/include/sysemu/char.h
diff options
context:
space:
mode:
authorJing Liu2016-09-23 08:06:11 +0200
committerCornelia Huck2017-05-04 10:34:37 +0200
commitae92cbd542086a508343dd88fd3b980f3be1b3af (patch)
tree2806f864dc05434d9c5ceafc63868181245bb6d4 /include/sysemu/char.h
parentMerge remote-tracking branch 'sthibault/tags/samuel-thibault' into staging (diff)
downloadqemu-ae92cbd542086a508343dd88fd3b980f3be1b3af.tar.gz
qemu-ae92cbd542086a508343dd88fd3b980f3be1b3af.tar.xz
qemu-ae92cbd542086a508343dd88fd3b980f3be1b3af.zip
chardev: Basic support for TN3270
This introduces basic support for TN3270, which needs to negotiate three Telnet options during handshake: - End of Record - Binary Transmission - Terminal-Type As a basic implementation, this simply ignores NOP and Interrupt Process(IP) commands. More work should be done for them later. For more details, please refer to RFC 854 and 1576. Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com> Signed-off-by: Yang Chen <bjcyang@linux.vnet.ibm.com> Reviewed-by: QingFeng Hao <haoqf@linux.vnet.ibm.com> Acked-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'include/sysemu/char.h')
-rw-r--r--include/sysemu/char.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sysemu/char.h b/include/sysemu/char.h
index 450881d42c..f6d5cd0c9b 100644
--- a/include/sysemu/char.h
+++ b/include/sysemu/char.h
@@ -7,6 +7,14 @@
#include "qemu/bitmap.h"
#include "qom/object.h"
+#define IAC_EOR 239
+#define IAC_SE 240
+#define IAC_NOP 241
+#define IAC_BREAK 243
+#define IAC_IP 244
+#define IAC_SB 250
+#define IAC 255
+
/* character device */
typedef enum {