scapy icon indicating copy to clipboard operation
scapy copied to clipboard

`conf.manufdb.*` doesn't seem to work because Wireshark and some distros no longer ship the OUI database

Open evverx opened this issue 1 year ago • 0 comments

Brief description

The "manuf" file was removed from the Wireshark repository in https://github.com/wireshark/wireshark/commit/b4a421cf8206dc9a675fbc58500d1a625869e77a and at least Fedora and Debian no longer ship it with Wireshark. Because of that conf.manufdb doesn't work even with Wireshark installed and the manufdb tests fail with

###(062)=[failed] Test manuf DB methods 

^[[34m^[[1m>>> ^[[0massert conf.manufdb._resolve_MAC("00:00:0F:01:02:03") == "Next:01:02:03"
Traceback (most recent call last):
  File "<input>", line 2, in <module>
AssertionError

It's possible to get it around by manually generating the "manuf" file and putting it in /usr/share/wireshark:

tshark -G manuf >/usr/share/wireshark/manuf

The Wireshark project periodically uploads it to https://www.wireshark.org/download/automated/data/manuf

Scapy version

0708e674

Python version

Python 3.12.2

Operating system

Fedora Rawhide

Additional environment information

wireshark-cli-4.2.2-2.fc40.x86_64

How to reproduce

It can be reproduced by running the "manufdb" tests on Fedora Rawhide (or Debian Testing) with the latest version of Wireshark installed:

python3 -m scapy.tools.UTscapy -t test/regression.uts -k manufdb

Actual result

###(062)=[failed] Test manuf DB methods 

^[[34m^[[1m>>> ^[[0massert conf.manufdb._resolve_MAC("00:00:0F:01:02:03") == "Next:01:02:03"
Traceback (most recent call last):
  File "<input>", line 2, in <module>
AssertionError

Expected result

No response

Related resources

No response

evverx avatar Feb 14 '24 02:02 evverx