Simple request output, even without DEBUG
This commit is contained in:
parent
7ebbccbbac
commit
bf9ad1a030
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue