From 0543208957f3f1a14f66d0c70fcc813e779f7638 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Sep 2010 20:32:34 +0200 Subject: Working login, buggy terminal-data reception --- mactelnet.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mactelnet.h') diff --git a/mactelnet.h b/mactelnet.h index 5227718..685cb6b 100644 --- a/mactelnet.h +++ b/mactelnet.h @@ -17,6 +17,8 @@ #define MT_CPTYPE_TERM_HEIGHT 6 #define MT_CPTYPE_PACKET_ERROR 7 #define MT_CPTYPE_END_AUTH 9 +// Internal CPTYPE, not part of protocol +#define MT_CPTYPE_PLAINDATA -1 struct mt_mactelnet_hdr { unsigned char ver; @@ -28,4 +30,10 @@ struct mt_mactelnet_hdr { unsigned char *data; }; +struct mt_mactelnet_control_hdr { + signed char cptype; + unsigned int length; + unsigned char *data; +}; + #endif -- cgit v1.2.3