• Cyrill Gorcunov's avatar
    sockets: Restore unbound inet sockets v5 · 37131e51
    Cyrill Gorcunov authored
    v2:
     - Use do_dump_opt in dump_socket to not call
       lookup_socket redundantly
    
    v3:
     - use getsockopt to check that unconnected
       socket has no peername and it's not listening
     - do test only socket protocol since family and
       type will be called in dump_one_inet_fd.
    
    v4:
     - Move proto tests to can_dump_inet_sk
     - Use SOL_TCP/TCP_INFO to gather info about tcp sockets
    
    v5:
     - hash unconnected sockets to run BUG_ON(already-dumped) logic
     - no default value for sk->wqlen, use zero from xzalloc
     - drop bogus xfree on error
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    37131e51
Name
Last commit
Last update
..
atomic.h Loading commit data...
bitops.h Loading commit data...
compiler.h Loading commit data...
crtools.h Loading commit data...
eventfd.h Loading commit data...
eventpoll.h Loading commit data...
file-ids.h Loading commit data...
files-reg.h Loading commit data...
files.h Loading commit data...
image.h Loading commit data...
inet_diag.h Loading commit data...
inotify.h Loading commit data...
ipc_ns.h Loading commit data...
kcmp-ids.h Loading commit data...
libnetlink.h Loading commit data...
linkage.h Loading commit data...
list.h Loading commit data...
lock.h Loading commit data...
log.h Loading commit data...
memcpy_64.h Loading commit data...
mount.h Loading commit data...
namespaces.h Loading commit data...
netfilter.h Loading commit data...
parasite-syscall.h Loading commit data...
parasite.h Loading commit data...
pipes.h Loading commit data...
proc_parse.h Loading commit data...
processor-flags.h Loading commit data...
pstree.h Loading commit data...
ptrace.h Loading commit data...
rbtree.h Loading commit data...
restorer-log.h Loading commit data...
restorer.h Loading commit data...
shmem.h Loading commit data...
sk-inet.h Loading commit data...
sk-queue.h Loading commit data...
sockets.h Loading commit data...
syscall-types.h Loading commit data...
syscall-x86-64.def Loading commit data...
sysctl.h Loading commit data...
types.h Loading commit data...
unix_diag.h Loading commit data...
util-net.h Loading commit data...
util.h Loading commit data...
uts_ns.h Loading commit data...