ARP reply function

This commit is contained in:
Dimitri Lozeve 2016-05-26 16:54:48 +02:00
parent 64b99fc6d0
commit d1db809cdf
2 changed files with 85 additions and 0 deletions

1
arp.h
View file

@ -36,5 +36,6 @@
*/
int send_arp_request(int sockfd, int ifindex, struct sockaddr_in *ipaddr, unsigned char *macaddr, struct in_addr target_ip);
int send_arp_reply(int sockfd, int ifindex, struct sockaddr_in *sender_ip, unsigned char *sender_mac, struct in_addr target_ip, unsigned char *target_mac);
#endif /* ARP_H_ */