29 Aug
2024
29 Aug
'24
7:26 p.m.
For a bit of extra context, it's worth pointing out that TCP_INFO does not always give complete information. The kernel may create internal TCP connections that are not actually associated with a socket anymore [1]. However, any such connections are beyond our power to enumerate anyway. /proc/net/tcp does not give us process information, only the inode, and the inode for these sockets is apparently 0 anyway. [1] https://bugzilla.kernel.org/show_bug.cgi?id=33902 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6399#note_80439