summaryrefslogtreecommitdiff
path: root/udp.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 /udp.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 'udp.h')
-rw-r--r--udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/udp.h b/udp.h
index d368371..9f3644c 100644
--- a/udp.h
+++ b/udp.h
@@ -1,5 +1,5 @@
#ifndef _UDP_H
#define _UDP_H 1
-extern int sendCustomUDP(const int socket, const char *sourcemac, const char *destmac, const char *sourceip, const int sourceport, const char *destip, const int destport, const char *data, const int datalen);
+extern int sendCustomUDP(const int socket, const int ifindex, const unsigned char *sourcemac, const unsigned char *destmac, const struct in_addr *sourceip, const int sourceport, const struct in_addr *destip, const int destport, const char *data, const int datalen);
extern void etherAddrton(unsigned char *dest, const unsigned char *mac);
#endif