Skip to content
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

IP_RECVTOS option is missing from socket module #88243

Closed
gsauthof mannequin opened this issue May 8, 2021 · 3 comments
Closed

IP_RECVTOS option is missing from socket module #88243

gsauthof mannequin opened this issue May 8, 2021 · 3 comments
Labels
3.11 stdlib type-feature

Comments

@gsauthof
Copy link
Mannequin

@gsauthof gsauthof mannequin commented May 8, 2021

BPO 44077
Nosy @gsauthof, @pablogsal, @miss-islington
PRs
  • #25992
  • #26815
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-12-06.21:41:29.529>
    created_at = <Date 2021-05-08.14:57:49.849>
    labels = ['type-feature', 'library', '3.11']
    title = 'IP_RECVTOS option is missing from socket module'
    updated_at = <Date 2021-12-06.21:41:29.529>
    user = 'https://github.com/gsauthof'

    bugs.python.org fields:

    activity = <Date 2021-12-06.21:41:29.529>
    actor = 'andrei.avk'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-12-06.21:41:29.529>
    closer = 'andrei.avk'
    components = ['Library (Lib)']
    creation = <Date 2021-05-08.14:57:49.849>
    creator = 'gms'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44077
    keywords = ['patch']
    message_count = 3.0
    messages = ['393261', '396192', '396198']
    nosy_count = 4.0
    nosy_names = ['python-dev', 'gms', 'pablogsal', 'miss-islington']
    pr_nums = ['25992', '26815']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44077'
    versions = ['Python 3.11']

    @gsauthof
    Copy link
    Mannequin Author

    @gsauthof gsauthof mannequin commented May 8, 2021

    Currently, the socket module doesn't provide the IP_RECVTOS constant.

    This constant is needed for receiving the TOS byte (or the DSCP bits) via ancillary data when calling recvmsg() or recvmsg_into().

    That means it would be used in a setsockopt() call like this:

    s.setsockopt(socket.IPPROTO_IP, socket.IP_RECVTOS, 1)

    This socket option is available on Linux and perhaps other operating systems, as well.

    See also https://manpath.be/f33/7/ip#L467

    @gsauthof gsauthof mannequin added 3.11 stdlib type-feature labels May 8, 2021
    @pablogsal
    Copy link
    Member

    @pablogsal pablogsal commented Jun 20, 2021

    New changeset a317778 by Georg Sauthoff in branch 'main':
    bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
    a317778

    @miss-islington
    Copy link
    Contributor

    @miss-islington miss-islington commented Jun 20, 2021

    New changeset 28fe015 by Miss Islington (bot) in branch '3.10':
    bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
    28fe015

    @akulakov akulakov closed this as completed Dec 6, 2021
    @akulakov akulakov closed this as completed Dec 6, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 stdlib type-feature
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants