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

Improved the ARP packet example #366

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Improved the ARP packet example #366

merged 1 commit into from
Mar 6, 2019

Conversation

Draphar
Copy link
Contributor

@Draphar Draphar commented Mar 6, 2019

Let's be honest: the ARP packet example was garbage. The sole purpose of ARP is getting the MAC address of a device in the network, but the old example required said MAC. The new example only takes the interface and the IP address of the device you want to know the MAC of as input. The interface IP and MAC is automatically extracted. Furthermore, the example now demonstrates the process of requesting a MAC, and also reading the answer.
I also made some small optimizations.

@mrmonday mrmonday merged commit 6c121f6 into libpnet:master Mar 6, 2019
@mrmonday
Copy link
Contributor

mrmonday commented Mar 6, 2019

Neat, thanks!

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