cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-95389: socketmodule: expose popular `ETHERTYPE_*` constants

Open noamcohen97 opened this issue 3 years ago • 9 comments

  • Issue: gh-95389

noamcohen97 avatar Jul 28 '22 16:07 noamcohen97

still missing docs, news and tests

noamcohen97 avatar Jul 28 '22 16:07 noamcohen97

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.

bedevere-bot avatar Aug 01 '22 11:08 bedevere-bot

I have made the requested changes; please review again.

noamcohen97 avatar Aug 01 '22 12:08 noamcohen97

Thanks for making the requested changes!

@tiran: please review the changes made to this pull request.

bedevere-bot avatar Aug 01 '22 12:08 bedevere-bot

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.

tiran avatar Aug 01 '22 13:08 tiran

Nice! macOS support them as well :) Thanks for pointing it out!

noamcohen97 avatar Aug 01 '22 14:08 noamcohen97

@tiran ping

noamcohen97 avatar Sep 07 '22 21:09 noamcohen97

Any updates on this?

noamcohen97 avatar Oct 14 '22 22:10 noamcohen97

I pinged people for another review here

CAM-Gerlach avatar Oct 15 '22 00:10 CAM-Gerlach

AFAICS, Christian's remarks have been addressed.

Thanks for the issue, PR, and your patience, Noam 🙂

erlend-aasland avatar Nov 07 '22 14:11 erlend-aasland