]> git.baikalelectronics.ru Git - kernel.git/commit
udp_diag: Implement the dump-all functionality
authorPavel Emelyanov <xemul@parallels.com>
Fri, 9 Dec 2011 06:24:21 +0000 (06:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 19:15:00 +0000 (14:15 -0500)
commit1a5b17c332efbd768b34d9db4afe5ed6fa5e7c5d
tree01f55007bfb8c680a4689d6e6f312f22f28adec3
parentb4e28dc3d32c7724adbb11e87c562d819f7c9412
udp_diag: Implement the dump-all functionality

Do the same as TCP does -- iterate the given udp_table, filter
sockets with bytecode and dump sockets into reply message.

The same filtering as for TCP applies, though only some of the
state bits really matter.

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