Interface names can be up to 16 bytes long. Docker bridge interfaces actually use this space so we need to reserve enough space here

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-05-16 04:51:01 +02:00
parent 4387ff21ee
commit d45a7c46fc
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 2 additions and 2 deletions

View File

@ -448,7 +448,7 @@ static void print_results(struct thread_data *thread_data)
// If there is at least one result, print header
printf("ARP scan on interface %s (%s/%i) finished\n",
thread_data->iface, thread_data->ipstr, thread_data->dst_cidr);
printf("%-16s %-10s %-24s %-17s Reply matrix\n",
printf("%-16s %-16s %-24s %-17s Reply matrix\n",
"IP address", "Interface", "Hostname", "MAC address");
// Add our own IP address to the results so IP conflicts can be detected
@ -487,7 +487,7 @@ static void print_results(struct thread_data *thread_data)
break;
// Print MAC address
printf("%-16s %-10s %-24s %02x:%02x:%02x:%02x:%02x:%02x ",
printf("%-16s %-16s %-24s %02x:%02x:%02x:%02x:%02x:%02x ",
thread_data->ipstr, thread_data->iface,
get_hostname(&ip),
thread_data->result[i].device[j].mac[0],