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 — gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket … · miss-islington/cpython@d32d48b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Misc/NEWS.d/next/Library
    • 2025-12-20-10-21-23.gh-issue-142991.jYHD9E.rst
  • Modules
    • socketmodule.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Misc/NEWS.d/next/Library/2025-12-20-10-21-23.gh-issue-142991.jYHD9E.rst‎

Copy file name to clipboard
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed socket operations such as recvfrom() and sendto() for FreeBSD
2+
divert(4) socket.
Collapse file

‎Modules/socketmodule.c‎

Copy file name to clipboardExpand all lines: Modules/socketmodule.c
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,6 +2649,12 @@ getsockaddrlen(PySocketSockObject *s, socklen_t *len_ret)
26492649
/* RDS sockets use sockaddr_in: fall-through */
26502650
#endif /* AF_RDS */
26512651

2652+
#ifdef AF_DIVERT
2653+
case AF_DIVERT:
2654+
/* FreeBSD divert(4) sockets use sockaddr_in: fall-through */
2655+
_Py_FALLTHROUGH;
2656+
#endif /* AF_DIVERT */
2657+
26522658
case AF_INET:
26532659
{
26542660
*len_ret = sizeof (struct sockaddr_in);

0 commit comments

Comments
0 (0)
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.