inet_diag: Introduce the inet socket dumping routine
authorPavel Emelyanov <xemul@parallels.com>
Fri, 9 Dec 2011 06:23:00 +0000 (06:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 19:14:08 +0000 (14:14 -0500)
commit3c4d05c8056724aff3abc20650807dd828fded54
tree5aed510034ceed980de3409587cbce8845229e77
parent8d07d1518a074a08b90be02eee5ee15e60ac9779
inet_diag: Introduce the inet socket dumping routine

The existing inet_csk_diag_fill dumps the inet connection sock info
into the netlink inet_diag_message. Prepare this routine to be able
to dump only the inet_sock part of a socket if the icsk part is missing.

This will be used by UDP diag module when dumping UDP sockets.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet_diag.h
net/ipv4/inet_diag.c