socket is no longer imported in this file. Remove the underscore

This commit is contained in:
Gustavo Moreira
2021-12-14 16:24:57 +11:00
parent 52181c7e8f
commit 7ed5739e24
@@ -310,13 +310,13 @@ class Sockstat(plugins.PluginInterface):
continue
socket_alloc = linux.LinuxUtilities.container_of(d_inode, "socket_alloc", "vfs_inode", vmlinux)
_socket = socket_alloc.socket
socket = socket_alloc.socket
vfs_inode = socket_alloc.vfs_inode
if not (_socket and vfs_inode):
if not (socket and vfs_inode):
continue
sock = _socket.sk.dereference()
sock = socket.sk.dereference()
sock_type = sock.type
family = sock.family