Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

royhills
Copy link
Owner

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

@coveralls
Copy link

Coverage Status

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

@royhills
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants