osociety / network_tools

Networking Tools library which can help you discover open ports, devices on subnet and many other things.
https://pub.dev/packages/network_tools
BSD 3-Clause "New" or "Revised" License
45 stars 13 forks source link

Vendor table key must be upper-case #178

Closed kengu closed 9 months ago

kengu commented 9 months ago

Problem Vendor information is always null, even for known mac-address ranges.

Analysis Keys in mac-vendors-export.csv are semicolon-separated in upper case.

On line 20 in VendorTable the first three mac address parts is joined without upper case.

Resolution Add .toUpperCase()to arpData.macAddress.split(pattern).sublist(0, 3).join()on line 20

guyluz11 commented 9 months ago

Nice catch

guyluz11 commented 9 months ago

Closing, will be merged in the new version.

Thanks