summaryrefslogtreecommitdiff
path: root/protocol.c
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.c
parent93d82ea7dd279e9a0eba68d4de49dc87ffa5ad7c (diff)
downloadMAC-Telnet-8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d.tar.gz
MAC-Telnet-8e2e73c7d861595f7e9a94eb4d7faf60addc0a2d.zip
Added simple DATA packet retransmission support.
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.c b/protocol.c
index d8ab355..a231780 100644
--- a/protocol.c
+++ b/protocol.c
@@ -30,7 +30,7 @@
unsigned char mt_mactelnet_cpmagic[4] = { 0x56, 0x34, 0x12, 0xff };
unsigned char mt_mactelnet_clienttype[2] = { 0x00, 0x15 };
-
+int retransmit_intervals[MAX_RETRANSMIT_INTERVALS] = { 15, 20, 30, 50, 90, 170, 330, 660, 1000 };
int init_packet(struct mt_packet *packet, enum mt_ptype ptype, unsigned char *srcmac, unsigned char *dstmac, unsigned short sessionkey, unsigned int counter) {
unsigned char *data = packet->data;