AndroidNetworkTools
AndroidNetworkTools copied to clipboard
Multiple ip has same MAC address.
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.
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