Repository navigation
gh-120056: Add IP_RECVERR, IP_RECVORIGDSTADDR, IP_RECVTTL to socket module
#120058
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add :data:`socket.IP_RECVTTL` and :data:`socket.IP_RECVERR` constants. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8421,6 +8421,12 @@ socket_exec(PyObject *m) | |
| #ifdef IP_RECVTOS | ||
| ADD_INT_MACRO(m, IP_RECVTOS); | ||
| #endif | ||
| #ifdef IP_RECVERR | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you insert these in alphabetical order? OOC why these two options? Just looking at man 7 ip, it looks like there are a few other options we are missing, e.g. IP_RECVORIGDSTADDR. Would it make sense to add more to make this list of options more complete?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, I added these two, because I only needed these two :) |
||
| ADD_INT_MACRO(m, IP_RECVERR); | ||
| #endif | ||
| #ifdef IP_RECVTTL | ||
| ADD_INT_MACRO(m, IP_RECVTTL); | ||
| #endif | ||
| #ifdef IP_RECVDSTADDR | ||
| ADD_INT_MACRO(m, IP_RECVDSTADDR); | ||
| #endif | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.