From bf9ad1a03045040e66419c95287540af8e25141c Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Fri, 3 Jun 2016 16:46:30 +0200 Subject: [PATCH] Simple request output, even without DEBUG --- simple_request.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simple_request.c b/simple_request.c index 1d33c4b..0e0c228 100644 --- a/simple_request.c +++ b/simple_request.c @@ -133,6 +133,11 @@ int main(int argc, char **argv) struct ether_arp *result = malloc(sizeof(struct ether_arp)); listen_arp_frame(sockfd, result); + unsigned char *macaddr1 = result->arp_sha; + printf("Target hardware address: %02x:%02x:%02x:%02x:%02x:%02x\n", + macaddr1[0],macaddr1[1],macaddr1[2], + macaddr1[3],macaddr1[4],macaddr1[5]); + exit(EXIT_SUCCESS);