-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
gh-95389: socketmodule: expose popular ETHERTYPE_*
constants
#95390
Conversation
noamcohen97
commented
Jul 28, 2022
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Expose some of ETH_P_* consts to ease raw socket creation #95389
still missing docs, news and tests |
Misc/NEWS.d/next/Core and Builtins/2022-07-30-14-10-27.gh-issue-95389.nSGEkG.rst
Outdated
Show resolved
Hide resolved
…e-95389.nSGEkG.rst Co-authored-by: Erlend Egeberg Aasland <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your patch does not add any ETH_P constants for me. I guess you need a configure check and include for a public header file. I'm not sure which header file is the best, perhaps net/ethernet.h
or netinet/ether.h
?
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. |
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
FreeBSD seems to have the header file 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 :) |
ETH_P_*
constantsETHERTYPE_*
constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some documentation suggestions and a couple comments.
Misc/NEWS.d/next/Core and Builtins/2022-07-30-14-10-27.gh-issue-95389.nSGEkG.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: CAM Gerlach <[email protected]>
Co-authored-by: CAM Gerlach <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some additional docs followups
Co-authored-by: CAM Gerlach <[email protected]>
@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 🙂 |