inet_diag: Split inet_diag_get_exact into parts
authorPavel Emelyanov <xemul@parallels.com>
Fri, 9 Dec 2011 06:22:10 +0000 (06:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 19:14:08 +0000 (14:14 -0500)
commit476f7dbff30a7c122899d753c9119d9233928380
tree4057a0698839b01a55f27109f52ef74f558e3ea1
parentb005ab4ef8805dc4604848c9d2ccca9d71f8fc46
inet_diag: Split inet_diag_get_exact into parts

The 1st part locks the inet handler and the 2nd one dump the
inet connection sock.

In the next patches the 1st part will be generalized to call
the socket dumping routine indirectly (i.e. TCP/UDP/DCCP) and
the 2nd part will be used by TCP and DCCP handlers.

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