Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use https for MAC address update #1639

Open
bwbroersma opened this issue Jan 28, 2025 · 0 comments
Open

Use https for MAC address update #1639

bwbroersma opened this issue Jan 28, 2025 · 0 comments
Assignees
Milestone

Comments

@bwbroersma
Copy link
Collaborator

bwbroersma commented Jan 28, 2025

See:

wget http://standards-oui.ieee.org/oui.txt

Also benefits a lot when rewritten to curl -O -compressed http://standards-oui.ieee.org/oui.txt since the download is 5.8MB (6006921 bytes) which compresses to just 1.78MB (1870156 bytes).

Note the grep, awk and python script could be replaced by:

$ (echo -n '{';sed -r -n 's/^([0-9A-B]{6})     \(base 16\)\t\t([^\r"]*)\r$/"\1FEFF": "\2", /p' oui.txt|tr -d '\n'|head -c-2;echo '}') > padded_macs.json

Or:

$ sed -r -n 's/^([0-9A-B]{6})     \(base 16\)\t\t([^\r]*)\r$/\1FFFE\t\2/p' oui.txt \
| jq -csR 'split("\n")|map(select(length>0)|split("\t")|{key:.[0],value:.[1]})|from_entries' > padded_macs.json
@bwbroersma bwbroersma added this to the backlog milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants