Alexandre Julliard pushed to branch master at wine / wine
Commits: 5261811d by Tim Clem at 2024-07-28T17:14:37+02:00 nsiproxy.sys: Use the pcblist64 sysctl to enumerate TCP connections on macOS.
The handles returned by libproc (namely struct socket_info's soi_pcb) use all 64 bits, but the ones from the pcblist sysctl are truncated to 32. That makes find_owning_pid fail. The pcblist64 sysctl was added in macOS 10.6 and returns handles that match those from libproc.
- - - - - 5305d80f by Tim Clem at 2024-07-28T17:14:39+02:00 nsiproxy.sys: Use the pcblist64 sysctl to enumerate UDP connections on macOS.
- - - - -
2 changed files:
- dlls/nsiproxy.sys/tcp.c - dlls/nsiproxy.sys/udp.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/8ad8c50e8f5e89b968146f232c63fe...