gh-95389: socketmodule: expose popular `ETHERTYPE_*` constants
- Issue: gh-95389
still missing docs, news and tests
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.
Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.
I have made the requested changes; please review again.
Thanks for making the requested changes!
@tiran: please review the changes made to this pull request.
FreeBSD seems to have the header file net/ethernet.h, too. The BSD variant uses different constant names like ETHERTYPE_IP. These are also supported by Linux's net/ethernet.h. Could you please check other platforms and use a common subset for the constants?
I know it's a PITB, but Python supports macOS and FreeBSD, too. Any new feature should work on all platforms if possible.
Nice! macOS support them as well :) Thanks for pointing it out!
@tiran ping
Any updates on this?
I pinged people for another review here
AFAICS, Christian's remarks have been addressed.
Thanks for the issue, PR, and your patience, Noam 🙂