-
Notifications
You must be signed in to change notification settings - Fork 25
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
macos fail arp if first two char mac found and then one digit mac tested #92
Comments
Can you run the command with debugging enabled, and share the output? getmac -v -dddd -4 <ip> |
It seems arp is used however this is returned:
This is outoput from Eclipse within a Thread. |
I found now the root couse for the problem:
Here on macOS if multiple ip's are tested and first is one with two chars each, e.g. '2c:16:db:af:4a:1d' The solution in my opinion should be either to use the macos version which fits also the linux version or to use platform.system()=='Darwin' to select the macOS regex at |
That makes sense. There's no point to testing when we already know the platform. Can you post a sample of the output of running Unfortunately I don't have reliable access to a Mac to test with (Vagrant VM is flaky and my 10 year old Mac Air is basically a dinosaur at this point). |
and
I added a Pull request #93 tested with mac |
* Fix for macOS arp #92 * black format fix * added changelog and contributor * Fix for macOS arp test * Fixed black format --------- Co-authored-by: Reimund Renner <[email protected]>
This is fixed in release 0.9.5 |
On macOS getmac does not return the MAC of some IP, however, using arp -n IP retuns the MAC successfully
macOS 14.0
Apple M1 chip
getmac 0.9.4
The text was updated successfully, but these errors were encountered: