summaryrefslogtreecommitdiff
path: root/protocol.h
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-11-02 18:09:32 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-11-02 18:09:32 +0100
commit40362c46806d033316e859db772f46c5652fbea3 (patch)
tree9fc5569479dddfbd87ce94046184168ffed1b49b /protocol.h
parenta993f53f4ab8e08bfa2c198d9375f85686e87c9f (diff)
downloadMAC-Telnet-40362c46806d033316e859db772f46c5652fbea3.tar.gz
MAC-Telnet-40362c46806d033316e859db772f46c5652fbea3.zip
Simplified the way parseControlPacket is looped/called
Diffstat (limited to 'protocol.h')
-rw-r--r--protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.h b/protocol.h
index 36616e8..9068708 100644
--- a/protocol.h
+++ b/protocol.h
@@ -82,7 +82,7 @@ struct mt_packet {
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);
+extern int parseControlPacket(unsigned char *data, int data_len, struct mt_mactelnet_control_hdr *cpkthdr);
/* MNDP packets */
struct mt_mndp_packet *parseMNDP(const char *data, const int packetLen);