diff options
Diffstat (limited to 'mactelnet.h')
-rw-r--r-- | mactelnet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mactelnet.h b/mactelnet.h index 44f5ca1..c9c5c02 100644 --- a/mactelnet.h +++ b/mactelnet.h @@ -54,4 +54,9 @@ struct mt_mactelnet_control_hdr { unsigned char *data; }; +extern int initPacket(unsigned char *data, unsigned char ptype, unsigned char *srcmac, unsigned char *dstmac, unsigned short sessionkey, unsigned short counter); +extern int addControlPacket(unsigned char *data, unsigned 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); + #endif |