Skip to content

0.9.4#87

Merged
GhostofGoes merged 7 commits intomainfrom
0.9.x
Jun 1, 2023
Merged

0.9.4#87
GhostofGoes merged 7 commits intomainfrom
0.9.x

Conversation

@GhostofGoes
Copy link
Owner

@GhostofGoes GhostofGoes commented May 18, 2023

Added

  • Support BusyBox's arping

Changed

  • Improve how ARP is handled. If ArpFile method succeeds, use it instead of ArpingHost (this should fix #86, for realsies this time).
  • Speed up the first call to ArpingHost
  • Fix FORCE_METHOD not being respected for IPv4 macs

This should properly fix #86

@GhostofGoes GhostofGoes self-assigned this May 18, 2023
@codecov
Copy link

codecov bot commented May 18, 2023

Codecov Report

Patch coverage: 69.86% and project coverage change: -1.58 ⚠️

Comparison is base (b523e2d) 89.32% compared to head (98307a7) 87.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
- Coverage   89.32%   87.75%   -1.58%     
==========================================
  Files           3        3              
  Lines         909      931      +22     
==========================================
+ Hits          812      817       +5     
- Misses         97      114      +17     
Impacted Files Coverage Δ
getmac/getmac.py 87.30% <69.86%> (-1.64%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

- If ArpFile method succeeds, use it instead of arping.
It's faster and less prone to breaking
(for example, the current arpfile code breaks on the BusyBox version of arping)
- Support busybox's arping.
It's basically iputils-arping, but every so slightly different enough to break getmac (:
- Speed up the first call to ArpingHost by removing the command arg check.
It now checks what variant is in use by just running the command as if it's iputils-arping/busybox arping,
and if it fails in a certain way, then falls back to Habet's method.
- Fix FORCE_METHOD not being respected for IPv4 macs
@GhostofGoes GhostofGoes changed the title Use ArpFile before ArpingHost (fixes #86) 0.9.4 Jun 1, 2023
@GhostofGoes GhostofGoes merged commit 51364ae into main Jun 1, 2023
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.

Cannot get MAC address with getmac 0.9.3

1 participant