summaryrefslogtreecommitdiff
path: root/mactelnet.h
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-03 03:46:35 +0200
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-10-03 03:46:35 +0200
commit5025b70fae9ab2d79deac9e08d806a85c339ddbe (patch)
treee2fd40151468fc2eb422361c6a62f9b9a0cc18b0 /mactelnet.h
parentfb6540513cdb72f874cdb409e493171c94e59460 (diff)
downloadMAC-Telnet-5025b70fae9ab2d79deac9e08d806a85c339ddbe.tar.gz
MAC-Telnet-5025b70fae9ab2d79deac9e08d806a85c339ddbe.zip
Fix invalid counter sizes which would break connection after 65535 bytes of data in one direction
Diffstat (limited to 'mactelnet.h')
-rw-r--r--mactelnet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mactelnet.h b/mactelnet.h
index d992de4..91e17e8 100644
--- a/mactelnet.h
+++ b/mactelnet.h
@@ -65,7 +65,7 @@ struct mt_packet {
unsigned char data[MT_PACKET_LEN];
};
-extern int initPacket(struct mt_packet *packet, unsigned char ptype, unsigned char *srcmac, unsigned char *dstmac, unsigned short sessionkey, unsigned short counter);
+extern int initPacket(struct mt_packet *packet, unsigned char ptype, unsigned char *srcmac, unsigned char *dstmac, unsigned short sessionkey, unsigned int counter);
extern int addControlPacket(struct mt_packet *packet, char cptype, void *cpdata, int data_len);
extern void parsePacket(unsigned char *data, struct mt_mactelnet_hdr *pkthdr);
extern int parseControlPacket(unsigned char *data, const int data_len, struct mt_mactelnet_control_hdr *cpkthdr);