diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-12-25 22:58:50 +0100 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-12-25 22:58:50 +0100 |
commit | 8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d (patch) | |
tree | ef0292168ab0bc96bf2c295e64f3f1ea061703f9 /protocol.h | |
parent | 93d82ea7dd279e9a0eba68d4de49dc87ffa5ad7c (diff) | |
download | MAC-Telnet-8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d.tar.gz MAC-Telnet-8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d.zip |
Added simple DATA packet retransmission support.
Diffstat (limited to 'protocol.h')
-rw-r--r-- | protocol.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |