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

Multiple ip has same MAC address. #57

Open
Akashdg opened this issue Aug 29, 2019 · 1 comment
Open

Multiple ip has same MAC address. #57

Akashdg opened this issue Aug 29, 2019 · 1 comment
Labels

Comments

@Akashdg
Copy link

Akashdg commented Aug 29, 2019

When I use ARPInfo.getAllIPAndMACAddressesInARPCache() line, it returns me some IP and mac but there is one mac address which is same for 4 different ip. when I run "apr -a" in cmd it give me different mac that above code and cmd give me unique mac addresses.

@Akashdg Akashdg changed the title Multiple ip has same MAC addresses. Multiple ip has same MAC address. Aug 29, 2019
@stealthcopter
Copy link
Owner

The function just parses each line in the /proc/net/arp file so I would imagine this mac address is appearing multiple times for the same IP in there. I'm not sure if this is a bug in the arp cache, or simply a feature I don't understand. If it's possible for you to inspect the file directly and see if there are some unexpected values in the file it would help us figure out what's going on!

Thanks

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

No branches or pull requests

2 participants