netlink icon indicating copy to clipboard operation
netlink copied to clipboard

feat(sock_diag): add state filter option to SocketDiag

Open laushunyu opened this issue 2 years ago • 2 comments

I want to retrieve all listening sockets, but I've noticed that SocketDiagTCP consumes a lot of memory and works slowly due to the large number of ESTABLISHED sockets on my server. Therefore, I've added a state filter(backward compatibility) to the SocketDiag function to pre-filter the sockets in the OS.

laushunyu avatar Sep 28 '23 07:09 laushunyu

need review, plz @vishvananda

laushunyu avatar Sep 28 '23 07:09 laushunyu

@laushunyu please resolve the conflicts

aboch avatar Jul 03 '24 20:07 aboch