]> 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)
commit35ad91efa967d7ec1e400437409bc5181cd7f03e
tree14c83ea2a3b804a39a3e19626c1dc349b6f12b8d
parenta4d28455a7df180a1d3e7be209fca3b9f87364c0
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