Simple test for listening

This commit is contained in:
Dimitri Lozeve 2016-05-27 14:49:57 +02:00
parent 6388075d50
commit a8d0d25355

View file

@ -126,7 +126,15 @@ int main(int argc, char **argv)
send_arp_request(sockfd, ifindex, ipaddr, macaddr, target_ip);
/* ====================================================================== */
/* We listens to the answer */
struct ether_arp *result = malloc(sizeof(struct ether_arp));
listen_arp_frame(sockfd, result);
exit(EXIT_SUCCESS);
}