Skip to content

in6_addrtovendor issue when manufdb is None #1243

@guedou

Description

@guedou
>>> in6_addrtovendor("fe80::40d2:67ff:fe05:8083")
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-0a5b12ee7a02> in <module>()
----> 1 in6_addrtovendor("fe80::40d2:67ff:fe05:8083")

/home/vagrant/scapy/scapy/utils6.py in in6_addrtovendor(addr)
    254         return None
    255
--> 256     res = conf.manufdb._get_manuf(mac)
    257     if len(res) == 17 and res.count(':') != 5: # Mac address, i.e. unknown
    258         res = "UNKNOWN"

AttributeError: 'NoneType' object has no attribute '_get_manuf'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions