GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen() · Issue #142991 · python/cpython

socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen() #142991

New issue
Copy link
New issue
Copy link
Closed
Closed
socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen()#142991
Copy link
Labels
OS-freebsdextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@glebius
glebius
opened on Dec 19, 2025
Issue body actions

Bug report

Bug description:

from socket import socket, PF_DIVERT, SOCK_RAW
with socket(PF_DIVERT, SOCK_RAW, 0) as fd:
        r = fd.recvfrom(16384)

The above fails, while must work. This is my miss with submission #96536. Opening pull request shortly.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

  • gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket #142993
  • [3.14] gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket (GH-142993) #143481
  • [3.13] gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket (GH-142993) #143482
  • [3.13] gh-142991: Fix socketmodule.c build: remove _Py_FALLTHROUGH #143514

Activity

  1. glebius
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Dec 19, 2025
  2. glebius
    added a commit that references this issue on Dec 19, 2025

    pythongh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT s…

    725ffa2
  3. StanFromIreland
    added
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    OS-freebsd
    on Dec 20, 2025
  4. glebius
    added a commit that references this issue on Dec 20, 2025

    pythongh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT s…

    fde0616
  5. vstinner
    added a commit that references this issue on Jan 6, 2026

    gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket (#…

    05406b2
  6. miss-islington
    added 2 commits that reference this issue on Jan 6, 2026

    pythongh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT s…

    325603a

    pythongh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT s…

    d32d48b
  7. vstinner
    closed this as completedon Jan 6, 2026
  8. vstinner
    added 3 commits that reference this issue on Jan 6, 2026

    [3.13] gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT …

    7f93669

    [3.13] gh-142991: Fix socketmodule.c build: remove _Py_FALLTHROUGH (#…

    43e495d

    [3.14] gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT …

    fcd9500
  9. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT s…

    91c1cc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-freebsdextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.