Skip to content

fix: Update MAC prefixes and generation logic#138

Merged
mosajjal merged 2 commits intogopacket:masterfrom
dreadl0ck:fix/update-mac-prefixes
Oct 28, 2025
Merged

fix: Update MAC prefixes and generation logic#138
mosajjal merged 2 commits intogopacket:masterfrom
dreadl0ck:fix/update-mac-prefixes

Conversation

@dreadl0ck
Copy link
Copy Markdown
Contributor

  • Change IEEE OUI database URL from HTTP to HTTPS
  • Add custom User-Agent header to avoid bot blocking (received HTTP 418 with go user agent)
  • Regenerate valid_mac_prefixes.go with current data from IEEE

…-Agent

- Change IEEE OUI database URL from HTTP to HTTPS
- Add custom User-Agent header to avoid bot blocking (HTTP 418)
- Regenerate valid_mac_prefixes.go with current data from IEEE
- Add FIX_SUMMARY.md documenting the issue and solution
@mosajjal mosajjal requested a review from Copilot October 25, 2025 05:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the MAC prefix generator script that was producing empty output due to HTTP redirect issues and bot blocking by the IEEE server. The changes enable successful fetching and regeneration of the MAC address prefix database.

Key Changes:

  • Updated IEEE OUI database URL from HTTP to HTTPS
  • Added custom User-Agent header to bypass bot detection (HTTP 418 response)
  • Regenerated valid_mac_prefixes.go with current IEEE data

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
macs/gen.go Updated URL to HTTPS and implemented custom HTTP request with User-Agent header to avoid bot blocking
macs/FIX_SUMMARY.md Added documentation explaining the problem, root causes, changes made, and testing approach

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mosajjal
Copy link
Copy Markdown
Contributor

hey. I don't really need the .md file for the fix. please remove and commit so I can merge this.

@dreadl0ck
Copy link
Copy Markdown
Contributor Author

done - thx!

@mosajjal mosajjal merged commit f251eb3 into gopacket:master Oct 28, 2025
1 check passed
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.

3 participants