Simple request output, even without DEBUG

This commit is contained in:
Dimitri Lozeve 2016-06-03 16:46:30 +02:00
parent 7ebbccbbac
commit bf9ad1a030

View file

@ -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);