]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a9dc78659602a7540a17a11cc73980d7461376a
tree14c83ea2a3b804a39a3e19626c1dc349b6f12b8d
parente0785193d591396365055bc547a394fa7c517d45
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