Open informatik01 opened 3 months ago
The real problem is, the macOS kernel does not provide the information to lsof: no UDP socket info in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/proc_info.h
@jiegec So there is no solution / workaround to this problem?
If not, at least it would be nice to mention such moments in the man documentation to avoid confusion. It's not uncommon to mention platform specific nuances in the documentation so that users would be aware etc.
@jiegec So there is no solution / workaround to this problem?
No that I am aware as of now. But I am not expert on this, you could investigate further to see if there is such way to find status.
If not, at least it would be nice to mention such moments in the man documentation to avoid confusion. It's not uncommon to mention platform specific nuances in the documentation so that users would be aware etc.
That's correct.
Describe the bug
The documented feature of filtering processes that use UDP protocol with the specified state does not work on the latest (at the time of writing this) version of macOS Sonoma 14.6.
To Reproduce
Steps to reproduce the behavior (tried both the macOS supplied lsof revision 4.91 and the latest version 4.99.3 installed using Homebrew):
sudo lsof -iUDP -sUDP:Idle
Expected behavior
The normal output showing the results if present.
Program output
Environment (please complete the following information):
4.91
and4.99.3
Additional context
Quote from the
man lsof
documentation: