Skip to content

Handle different structure in /usr/share/ieee-data/oui.txt#18

Merged
kimocoder merged 1 commit into
kimocoder:masterfrom
rhertzog:ieee-data
Mar 7, 2020
Merged

Handle different structure in /usr/share/ieee-data/oui.txt#18
kimocoder merged 1 commit into
kimocoder:masterfrom
rhertzog:ieee-data

Conversation

@rhertzog

Copy link
Copy Markdown

That file has multi-line entries like those:

24-05-F5 (hex) Integrated Device Technology (Malaysia) Sdn. Bhd.
2405F5 (base 16) Integrated Device Technology (Malaysia) Sdn. Bhd.
Phase 3, Bayan Lepas FIZ
Bayan Lepas Penang 11900
MY

Thus we skip lines starting with spaces and we drop the parenthesis to
get back to the plain text format of ieee-oui.txt.

That file has multi-line entries like those:

24-05-F5   (hex)                Integrated Device Technology (Malaysia) Sdn. Bhd.
2405F5     (base 16)            Integrated Device Technology (Malaysia) Sdn. Bhd.
                                Phase 3, Bayan Lepas FIZ
                                Bayan Lepas  Penang  11900
                                MY

Thus we skip lines starting with spaces and we drop the parenthesis to
get back to the plain text format of ieee-oui.txt.
@kimocoder kimocoder merged commit 1b05b57 into kimocoder:master Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants