sock_diag (7) Linux Manual Page
sock_diag – obtaining information about sockets Synopsis #include <linux/inet_diag.h> /* for IPv4 and IPv6 sockets */ #include <linux/sock_diag.h> #include <linux/unix_diag.h> /* for UNIX domain sockets */ #include <sys/socket.h> diag_socket = socket(AF_NETLINK, socket_type, NETLINK_SOCK_DIAG); Description The sock_diag netlink subsystem provides a mechanism for obtaining information about sockets of various address families from the kernel. This subsystem…
