diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-11-02 18:09:32 +0100 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2010-11-02 18:09:32 +0100 |
commit | 40362c46806d033316e859db772f46c5652fbea3 (patch) | |
tree | 9fc5569479dddfbd87ce94046184168ffed1b49b /protocol.h | |
parent | a993f53f4ab8e08bfa2c198d9375f85686e87c9f (diff) | |
download | MAC-Telnet-40362c46806d033316e859db772f46c5652fbea3.tar.gz MAC-Telnet-40362c46806d033316e859db772f46c5652fbea3.zip |
Simplified the way parseControlPacket is looped/called
Diffstat (limited to 'protocol.h')
-rw-r--r-- | protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |