netlink: Implment netlink_broadcast_filtered
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 5 May 2010 00:36:46 +0000 (17:36 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:32 +0000 (09:37 -0700)
commit910a7e905f36e51a17d6e8bb4ad6dcd5ac5f1d53
tree63587b03de37a6b9a6b58c203719a24d57edf850
parentd6523ddf2376f39eaa89a4d68a33052d20c138b9
netlink: Implment netlink_broadcast_filtered

When netlink sockets are used to convey data that is in a namespace
we need a way to select a subset of the listening sockets to deliver
the packet to.  For the network namespace we have been doing this
by only transmitting packets in the correct network namespace.

For data belonging to other namespaces netlink_bradcast_filtered
provides a mechanism that allows us to examine the destination
socket and to decide if we should transmit the specified packet
to it.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/netlink.h
net/netlink/af_netlink.c