History

inet_diag: add support for cgroup filter

This patch adds ability to filter sockets based on cgroup v2 ID. Such filter is helpful in ss utility for filtering sockets by cgroup pathname.

Dmitry Yakunin committed 6 years ago

Commit b1f3e431 parent 6e3a4012 files · +32 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/inet_diag.h+1−0
@@ -96,6 +96,7 @@ enum { · 95 unmodified lines
9696 INET_DIAG_BC_MARK_COND,
9797 INET_DIAG_BC_S_EQ,
9898 INET_DIAG_BC_D_EQ,
99+ INET_DIAG_BC_CGROUP_COND, /* u64 cgroup v2 ID */
99100 };
100101
101102 struct inet_diag_hostcond {