From a8d0d253551ce2b506b2ceaa0bde7687b62f51a3 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Fri, 27 May 2016 14:49:57 +0200 Subject: [PATCH] Simple test for listening --- simple_request.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/simple_request.c b/simple_request.c index c2b469e..c9d8516 100644 --- a/simple_request.c +++ b/simple_request.c @@ -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); }