Package: python3-netaddr
Version: 0.7.19-5

OUI lookups are returning incorrect / corrupt results. Take for
example OUI F4-6D-04.

The data in ieee-data is correct:

    F4-6D-04   (hex)        ASUSTek COMPUTER INC.
    F46D04     (base 16)        ASUSTek COMPUTER INC.
                    15,Li-Te Rd.,Peitou,
                    Taipei    112
                    TW

But using the OUI object I get completely incorrect / corrupt results:

    >>> oui = OUI('F4-6D-04')
    >>> oui
    OUI('F4-6D-04')
    >>> oui.registration()
    {'address': [')\t\tCisco Systems, Inc',
                '80 West Tasman Drive',
                'San Jose  CA  94568',
                'US'],
    'idx': 16018692,
    'offset': 821392,
    'org': 'eero inc.',
    'oui': 'F4-6D-04',
    'size': 141}

I suspect that the reason is because this debian package replaces
netaddr/eui/oui.txt with a symlink to /var/lib/ieee-data/oui.txt but
**does not** update the corresponding oui.idx. Thus, the indices are
stale.

This Debian package likely needs to re-generate the indices before shipping.

See issue originally reported upstream:
https://github.com/netaddr/netaddr/issues/249

Reply via email to