summaryrefslogtreecommitdiff
path: root/protocol.h
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-25 22:58:50 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-25 22:58:50 +0100
commit8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d (patch)
treeef0292168ab0bc96bf2c295e64f3f1ea061703f9 /protocol.h
parent93d82ea7dd279e9a0eba68d4de49dc87ffa5ad7c (diff)
downloadMAC-Telnet-8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d.tar.gz
MAC-Telnet-8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d.zip
Added simple DATA packet retransmission support.
Diffstat (limited to 'protocol.h')
-rw-r--r--protocol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocol.h b/protocol.h
index 4be9247..bdebfd0 100644
--- a/protocol.h
+++ b/protocol.h
@@ -92,11 +92,16 @@ extern int parse_control_packet(unsigned char *data, int data_len, struct mt_mac
struct mt_mndp_packet *parse_mndp(const unsigned char *data, const int packet_len);
int query_mndp(const char *identity, unsigned char *mac);
+/* Initialized by protocol.c */
+#define MAX_RETRANSMIT_INTERVALS 9
+extern int retransmit_intervals[MAX_RETRANSMIT_INTERVALS];
+
/* Control packet magic header */
extern unsigned char mt_mactelnet_cpmagic[4];
extern unsigned char mt_mactelnet_clienttype[2];
-/* Must be defined by application */
+/* Must be initialized by application */
extern unsigned char mt_direction_fromserver;
+
#endif