Skip to content

Commit

Permalink
WIP TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostofGoes committed Jul 25, 2023
1 parent ed9553f commit 0c1a478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions getmac/getmac.py
Expand Up @@ -372,6 +372,12 @@ def get(self, arg: str) -> Optional[str]:
return None

if data is not None and len(data) > 1:
# TODO: handle flags column, 0x0 entries are incomplete and should be ignored
# https://github.com/GhostofGoes/getmac/issues/76
# Need to get some samples, probably by doing wifi schennigans
# Not sure if worth addressing for arp command parsers,
# thought maybe it's a use case for Android? (ArpFile no work?)

# Need a space, otherwise a search for 192.168.16.2
# will match 192.168.16.254 if it comes first!
return _search(re.escape(arg) + r" .+" + MAC_RE_COLON, data)
Expand Down

0 comments on commit 0c1a478

Please sign in to comment.