Skip to content

gh-85280: add IP_PORTRANGE* constants to the socket module - #21127

Open
ngie-eign wants to merge 2 commits into
python:mainfrom
ngie-eign:add-more-ip_range-constants-to-socket
Open

ngie-eign wants to merge 2 commits into
python:mainfrom
ngie-eign:add-more-ip_range-constants-to-socket

Conversation

@ngie-eign

@ngie-eign ngie-eign commented Jun 24, 2020 •

Copy link
Copy Markdown
Contributor

IP_PORTRANGE* can be used for getting/setting port ranges on a per
socket basis, as opposed to a system wide basis, in conjunction with calls
like socket.getsockopt and socket.setsockopt.

This functionality is available on *BSD and Linux.

Signed-off-by: Enji Cooper yaneurabeya@gmail.com
Closes: #85280

@ngie-eign ngie-eign changed the title Add IP_PORTRANGE* constants to the socket module bpo-41108: add IP_PORTRANGE* constants to the socket module Jun 24, 2020
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from 299a942 to f73ff38 Compare June 24, 2020 21:12
Comment thread Doc/library/socket.rst Outdated
Comment thread Doc/library/socket.rst Outdated
Comment thread Misc/NEWS.d/next/Core and Builtins/2020-06-24-21-09-04.bpo-41108.wIy4D8.rst Outdated
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from f73ff38 to fe85b3e Compare March 10, 2021 19:14
Comment thread Doc/library/socket.rst Outdated
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from afe7912 to 04831c8 Compare October 19, 2025 07:39
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from a202a0a to 71b4b4d Compare October 19, 2025 07:48
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from 71b4b4d to c128717 Compare October 28, 2025 17:28
@ngie-eign

Copy link
Copy Markdown
Contributor Author

@ZackerySpytz : fixed the issues with the news blurb. Do you have an opportunity to review this, or is someone else on the dev team available?

@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from c128717 to 908a86e Compare October 28, 2025 19:06
Comment thread Modules/socketmodule.c Outdated
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 8, 2026
@serhiy-storchaka serhiy-storchaka changed the title bpo-41108: add IP_PORTRANGE* constants to the socket module gh-85280: add IP_PORTRANGE* constants to the socket module Aug 12, 2026
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 14, 2026
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from e1fc605 to 79376ef Compare August 30, 2026 16:19
@ngie-eign
ngie-eign requested a review from caje731 August 30, 2026 16:19
@read-the-docs-community

read-the-docs-community Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from 79376ef to 099620c Compare October 5, 2026 18:15
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 5, 2026
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from 099620c to 092f098 Compare October 5, 2026 18:17
ngie-eign and others added 2 commits October 5, 2026 11:26
`IP_PORTRANGE*` can be used for getting/setting port ranges on a per socket
basis, as opposed to a system wide basis, in conjunction with calls like
`socket.getsockopt` and `socket.setsockopt`.

This functionality is available on \*BSD and Linux.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
@ngie-eign
ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from 899b723 to fae36bd Compare October 5, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IN module removed in python 3.x; socket doesn't fill in the gap with IP_PORTRANGE*

7 participants