DylanPiercey / local-devices

🔮 Find devices connected to the current local network.
MIT License
140 stars 27 forks source link

Mac address formatting added to standardise output #1

Closed MarkusSuomi closed 6 years ago

MarkusSuomi commented 6 years ago

Different arp cmd implementations produce differently formatted outputs: some format mac addresses so that its elements always include leading zeros e.g. 00:0f:b1:3c:d0:0f, some others omit those e.g. 0:f:b1:3c:d0:f.

I would rather have standardised output so that e.g. if you want to check for a presence of a certain device in the network you can do simple string matching regardless of arp cmd implementation.

DylanPiercey commented 6 years ago

Looks good, sorry for the delay. Thanks for the PR!