summaryrefslogtreecommitdiff
path: root/mactelnet.h
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-09-27 15:26:47 +0200
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-09-27 15:26:47 +0200
commit3afa38b2e38a53441ce55bf5932553a8672268bf (patch)
tree9de9649ede2fda518bb6b7f442fd16430df95984 /mactelnet.h
parentccda1f219d6a07b59d2ebf69f7c0864aba397098 (diff)
downloadMAC-Telnet-3afa38b2e38a53441ce55bf5932553a8672268bf.tar.gz
MAC-Telnet-3afa38b2e38a53441ce55bf5932553a8672268bf.zip
Cleaned up src/dst mac/ip handling a bit. Now fully automates source ip/mac addresses according to ethernet device chosen.
Diffstat (limited to 'mactelnet.h')
-rw-r--r--mactelnet.h5
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