arp-scan icon indicating copy to clipboard operation
arp-scan copied to clipboard

Add option to include own interface IP and MAC address in output

Open royhills opened this issue 1 year ago • 2 comments

Add --includeself (-c) option to include our own interface IPv4 and MAC address in the output.

The IP address shown will be the first address on the interface.

Issue: #40

royhills avatar Mar 23 '23 08:03 royhills

Coverage Status

Coverage: 91.13% (-0.2%) from 91.296% when pulling e1e60d87e6e03c8bb54488afdc337b3b859220a5 on display-own-addresses into fe2b609a17144b7f80eba54f1a84a76100dad825 on master.

coveralls avatar Mar 23 '23 08:03 coveralls

I think the best way to implement this will be to create the ARP packet structures for a fictitious ARP response packet appearing to come from the host's own interface IP/MAC then call display_packet() in the same way that the pcap callback function does for a real response.

royhills avatar Mar 23 '23 21:03 royhills