Comment 1 for bug 1628761

Revision history for this message
Mike Pontillo (mpontillo) wrote : Re: netaddr assumes MAC OUI is ascii

This seems to be a bug in netaddr and/or a side effect of corrupt entries, in oui.txt, depending on how you approach the problem.

In '/usr/lib/python3/dist-packages/netaddr/eui/oui.txt' there are entries such as:

  00-22-59 (hex) Guangzhou New Postcom Equipment Co.,Ltd.
  002259 (base 16) Guangzhou New Postcom Equipment Co.,Ltd.
                                No.3¡¡Guangpuxi Road,Guangzhou Science City,
                                Guangzhou Guangdong 510663
                                CHINA

Note the non-ASCII characters. (They don't look correct, so I doubt the entries in this file were imported with a consistent source encoding.) There are numerous examples of characters like this if you search through the file for characters with an 8th bit set.