Title: socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen() · Issue #142991 · python/cpython · GitHub
Open Graph Title: socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen() · Issue #142991 · python/cpython
X Title: socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen() · Issue #142991 · python/cpython
Description: 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 s...
Open Graph Description: 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 s...
X Description: 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 s...
Opengraph URL: https://github.com/python/cpython/issues/142991
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"socketmodule: FreeBSD PF_DIVERT is missing in getsockaddrlen()","articleBody":"# Bug report\n\n### Bug description:\n\n```python\nfrom socket import socket, PF_DIVERT, SOCK_RAW\nwith socket(PF_DIVERT, SOCK_RAW, 0) as fd:\n r = fd.recvfrom(16384)\n```\n\nThe above fails, while must work. This is my miss with submission #96536. Opening pull request shortly.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-142993\n* gh-143481\n* gh-143482\n* gh-143514\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/glebius","@type":"Person","name":"glebius"},"datePublished":"2025-12-19T21:46:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/142991/cpython/issues/142991"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7f6163b-c665-fc03-5871-e7f36976a4d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4E2:3FFE1:762B7F:9F069A:6969DC0F |
| html-safe-nonce | ffe6e2d2c0c85e5038f95cc988e2058d33b2366779de7412207c13fc6d9d7b21 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEUyOjNGRkUxOjc2MkI3Rjo5RjA2OUE6Njk2OURDMEYiLCJ2aXNpdG9yX2lkIjoiMzI3NTI4NzQ2NDA3Mzg3ODU0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 038a15ba3e3554441fbe92f0f40b821dc395a237045169047f1af70849e48672 |
| hovercard-subject-tag | issue:3748983663 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/142991/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9a38f744f3d47872b43e59bb747c203bc6fcbd726395edf6d267563fc938cb9/python/cpython/issues/142991 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9a38f744f3d47872b43e59bb747c203bc6fcbd726395edf6d267563fc938cb9/python/cpython/issues/142991 |
| og:image:alt | 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 s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glebius |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width