-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
GH-100813: Add IPv4 socket option constant IP_PKTINFO as socket module attribute #10294
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
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
Would it be possible to use something like |
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.
There are merge conflicts.
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 |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
This should be about set. Hold merging if you'd like me to add the other constants that are defined in |
These are the other potential constants that could also be included.The indented lines/defs are already in.
source: https://github.com/torvalds/linux/blob/master/include/uapi/linux/in.h |
Lets only add |
Misc/NEWS.d/next/Library/2023-01-06-22-36-27.gh-issue-100813.mHRdQn.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Kumar Aditya <[email protected]>
ok :)
Done. |
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.
LGTM
The socket option IP_PKTINFO is defined on Linux and OSX.
I would think we would want all the socket option constants defined in systems headers specifically <in.h> available as socket module level attributes.
There are many other constants I would be willing to add, if desired.
In fact I'm curious if all constants should be pulled from headers dynamically.
My first PR on cpython, forgive any transgressions. I'm not clear if I should also create a br on bpo.