inet_diag: Introduce socket family checks
authorPavel Emelyanov <xemul@parallels.com>
Tue, 6 Dec 2011 07:59:15 +0000 (07:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 18:58:02 +0000 (13:58 -0500)
commitd23deaa07b9b788e781a2253672cdc8b65b85e53
tree14c83ea2a3b804a39a3e19626c1dc349b6f12b8d
parent25c4cd2b6dfd8e3d8efd8e85f167b66c032b80d9
inet_diag: Introduce socket family checks

The new API will specify family to work with. Teach the existing
socket walking code to bypass not interesting ones.

To preserve compatibility with existing behavior the _compat code
sets interesting family to AF_UNSPEC to dump them all.

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